whipper-team / whipper

Python CD-DA ripper preferring accuracy over speed
GNU General Public License v3.0
1.14k stars 90 forks source link

whipper detects audio CDs with data tracks as CD-R #628

Open hadess opened 3 months ago

hadess commented 3 months ago

whipper-0.10.0-11.fc39.x86_64

If I launch a whipper rip while the CD is still spinning up, it's possible that whipper will race with the desktop auto-mounting, and detect the CD as a CD-R.

INFO:whipper.command.cd:using configured read offset 6
INFO:whipper.command.cd:checking device /dev/sr1
CDDB disc id: 800a330c
MusicBrainz disc id TCzqd9WRyGjsnjTOczWRyYsqdNo-
MusicBrainz lookup URL https://musicbrainz.org/cdtoc/attach?toc=1+12+196012+150+9868+27900+45573+61622+79523+90622+109952+113308+133631+154804+176550&tracks=12&id=TCzqd9WRyGjsnjTOczWRyYsqdNo-
Disc duration: 00:43:31.493, 12 audio tracks

Matching releases:

Artist  : Andrew W.K.
Title   : The Wolf
Duration: 00:43:31.488
URL     : https://musicbrainz.org/release/e92c726a-58ff-4c92-b3f9-8111da883f2c
Release : e92c726a-58ff-4c92-b3f9-8111da883f2c
Type    : Album
Barcode : 602498608142
Country : United Kingdom
Cat no  : 9860814

Artist  : Andrew W.K.
Title   : The Wolf
Duration: 00:43:31.488
URL     : https://musicbrainz.org/release/ae592853-b767-35dc-ac38-12291ba11934
Release : ae592853-b767-35dc-ac38-12291ba11934
Type    : Album
Barcode : 602498606391
Country : United States
Cat no  : B0001051-02

Artist  : Andrew W.K.
Title   : The Wolf (Disc 2 of 2)
Duration: 00:43:31.488
URL     : https://musicbrainz.org/release/804a22c3-305d-4f3b-8106-b441e734790a
Release : 804a22c3-305d-4f3b-8106-b441e734790a
Type    : Album
Barcode : 602498614235
Country : United States
Cat no  : B0001750-82

Artist  : Andrew W.K.
Title   : The Wolf
Duration: 00:43:31.488
URL     : https://musicbrainz.org/release/571a5aa8-c35c-462a-8384-f51544c760f9
Release : 571a5aa8-c35c-462a-8384-f51544c760f9
Type    : Album
Barcode : 602498606391
Country : Europe
Cat no  : 0602498606391

Please select a release [e92c726a-58ff-4c92-b3f9-8111da883f2c]: 
INFO:whipper.common.program:picked requested release id e92c726a-58ff-4c92-b3f9-8111da883f2c
CRITICAL:whipper.command.cd:inserted disc seems to be a CD-R, --cdr not passed
Artist: Andrew W.K.
Title : The Wolf

unmounting the disc makes it be detected correctly, and ripping is attempted.