[mythtv-users] Re: Mythmusic and directory listing issues after
upgrade
Dewey Smolka
dsmolka at gmail.com
Mon Mar 14 14:02:17 UTC 2005
Thanks very much. I'll give this a try as soon as I can and let you know.
On Sun, 13 Mar 2005 22:37:08 -0000, Paul <mythtv at dsl.pipex.com> wrote:
> >> If you are not familiar with MySQL probably the easiest way to check that
> >> your music files have been imported properly is to play a track then
> press
> >> the
> >> I or INFO key to display the metadata editor. If the values you see in
> the
> >> editor
> >> for artist, album, track etc are correct you know the track info has been
> >> imported
> >> correctly into the database. If they don't match up could you post an
> >> example to
> >> help track the problem down.
>
> >They do not match up. It seems to be dropping the Album field,
> >shifting the Title into the Album field, and shifting the Genre into
> >the Title field. Here's the metadata for the example I used before:
>
> >Artist: Buddy Guy
> >Album: Damn Right I've Got the Blues [the name of track 1]
> >Title: Blues [genre]
> >Genre: Unknown
> >Year: 0
> >Length: 00:00
>
> >The filename is
> >/mnt/hdb6/media/audio/Blues/Buddy_Guy/Best_of/01_Damn_Right_I've_Got_the_Bl
> ues.ogg
>
> <snip>
>
> I think I have found the problem. The metadata is extracted from the
> filename in the
> Metadata* MetaIO::readFromFilename() function in the metaio.cpp file. The
> problem
> is in the parameters passed to new Metadata(...) are passed in the wrong
> order. Actually
> the compilation_artist parameter has been left out.
>
> All you need to do is change the line:
>
> Metadata *retdata = new Metadata(filename, artist, album, title, genre, 0,
> tracknum, length);
>
> to:
>
> Metadata *retdata = new Metadata(filename, artist, "", album, title, genre,
> 0, tracknum, length);
>
> and recompile and install.
>
> I'll send a patch to the dev list.
>
> Paul
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
More information about the mythtv-users
mailing list