Hi there,

I found a bug in the Disc ID affectation.
As I could have seen, the Disc ID of a CD is the burning date of the CD, with that
format : YYYYMMDDHHmm0000 .. so 16 chars. OK.
I use Nero to burn my CDs. I do NOT close the compilation each time I burn a new
CD (always staying with ISO1 for those who knows Nero, not closing the bruned
CD and opening ISO2 to make a new compil etc...)
So, all the CDs I burn in 1 day have the same day/time of burning ... so they ALL
have 2003031809320000 as ID for example, so if I make a cover and a fxd form
the imdb helper, they all have the same cover !
Very annoying.

I found a way to avoid that. In the fxd file, the media-id is stored like that :




So when you insert the CD, Freevo get the DiscID, I changed it in order to take
also the 4 first chars of the label. In my example it takes
2003031810270000CHIC , 2003031810270000CHIC and
2003031810270000SEX_ ... so I have NO MORE problems because the are
different now and it does NOT change the fxd file format neither the imdb helper.

I changed 2 files :
src/identifymedia.py and src/video/xml_parser.py

src/video/xml_parser.py :
replace 2 times :
if len(i) > 16:
i = i[0:16]
with :
if len(i) > 20:
i = i[0:20]
in def hash_xml_database(); function.

src/identifymedia.py:
replace :
media.id = id
media.label = ''
with :
id += label[0:4]
media.id = id
media.label = ''
print "ID : %s" % media.id
in def identify(self, media); function (after the cd seek !!)


Could someone integrate this function in Freevo ?

Thanks for your attention,
Have a nice day,

U-NeeK.

______________________________________________________________
Gagne une PS2 ! Envoie un SMS avec le code PS au 61166
(0,35 Euro Hors co�t du SMS)

Reply via email to