Bugs: Browse | Submit New | Admin

[#75] genre as nil when empty

Date:
2003-09-07 11:43
Priority:
3
Submitted By:
Fernando Arbeiza (sileno)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
genre as nil when empty

Detailed description
Hi:

I have realized that the genre attribute is nil when it is empty. Other
attributes (ext_infos, 'ext' from tracks hash) are assigned the empty
string when they are empty. I think that, in order to be consistent,
genre should also be the empty string.

Perhaps it's more of a bug in some freedb entries than in ruby-freedb.
Quoting from the Appendix B of the Freedb Howto:

    All of the applicable keywords must be present in the file, though
    they may have empty data except for the DISCID and DTITLE keywords.

And some entries lack the keyword DGENRE.

I append a little patch fixing this.

Regards

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
ruby-freedb-0.5.patch Patch against ruby-freedb-0.5 Download

Changes:

Field Old Value Date By
File Added8: ruby-freedb-0.5.patch2003-09-07 11:43sileno