diff -Nur --ignore-all-space --exclude='*~' trunk/mythplugins/mythmusic/mythmusic/metaioflacvorbiscomment.cpp edit/mythplugins/mythmusic/mythmusic/metaioflacvorbiscomment.cpp
old
|
new
|
|
193 | 193 | album = getComment(block, MYTH_VORBISCOMMENT_ALBUM); |
194 | 194 | genre = getComment(block, MYTH_VORBISCOMMENT_GENRE); |
195 | 195 | tracknum = getComment(block, MYTH_VORBISCOMMENT_TRACK).toInt(); |
196 | | year = getComment(block, MYTH_VORBISCOMMENT_DATE).toInt(); |
| 196 | // The date comment may be in the YYYY-MM-DD format so we should only |
| 197 | // try to convert up to the fourth character. |
| 198 | year = getComment(block, MYTH_VORBISCOMMENT_DATE).left(4).toInt(); |
197 | 199 | |
198 | 200 | QString tmp = getComment(block, |
199 | 201 | MYTH_VORBISCOMMENT_MUSICBRAINZ_ALBUMARTISTID); |
diff -Nur --ignore-all-space --exclude='*~' trunk/mythplugins/mythmusic/mythmusic/metaiooggvorbiscomment.cpp edit/mythplugins/mythmusic/mythmusic/metaiooggvorbiscomment.cpp
old
|
new
|
|
316 | 316 | title = getComment(comment, MYTH_VORBISCOMMENT_TITLE); |
317 | 317 | genre = getComment(comment, MYTH_VORBISCOMMENT_GENRE); |
318 | 318 | tracknum = getComment(comment, MYTH_VORBISCOMMENT_TRACK).toUInt(); |
319 | | year = getComment(comment, MYTH_VORBISCOMMENT_DATE).toInt(); |
| 319 | // The date comment may be in the YYYY-MM-DD format so we should |
| 320 | // only try to convert up to the fourth character. |
| 321 | year = getComment(comment, MYTH_VORBISCOMMENT_DATE).left(4).toInt(); |
320 | 322 | |
321 | 323 | QString tmp = getComment(comment, MYTH_VORBISCOMMENT_MUSICBRAINZ_ALBUMARTISTID); |
322 | 324 | compilation = (MYTH_MUSICBRAINZ_ALBUMARTIST_UUID == tmp); |