[mythtv] MythMusic patch for users w/o ID3 tags on mp3 files.
Joel Larsson
joel at rosafluffmoln.nu
Thu Jan 30 19:11:50 EST 2003
Would it be possible to add a thing so that files where sorted like the
directories on your disc?
//Joel
Chris Pinkham wrote:
>When I wrote a perl script to start ripping my CDs to mp3 files, I never
>added in the functionality to append ID3 tags to the mp3s. So, about
>90-95% of my mp3 files don't have any ID3 info. I still wanted to be able
>to use mytmmusic to play mp3 files though so I coded up this patch.
>
>The attached file is a patch to mythmusic's maddecoder.cpp, maddecoder.h,
>and mythmusic-settings.txt files. It creates 2 new options in
>mythmusic-settings.txt, here's an example:
>
>str Ignore_ID3=TRUE
>str NonID3FileNameFormat=GENRE/ARTIST/ALBUM/TRACK_TITLE
>
>If Ignore_ID3 is set to TRUE, mythmusic will try to determine the
>Genre, Artist, Album, Track Number, and Title from the filename of the
>mp3 file. The NonID3FileNameFormat variable should be set to the
>directory/file format where the mp3 files are stored. For instance, I
>store mine in the above shown Genre/Artist/Album/Track format. Mythmusic
>will then use this information to fill in the proper fields when it
>populates the musicmetadata table rather than searching for an ID3 tag in
>the mp3 file.
>
>The files can be layed out in any format, such as:
>
>Genre/Artist/Album/Title
>Artist/Genre/Album/Title
>Artist/Album/Title (with Genre left as Unknown)
>
>The track number is optional but can be specified with the title by using
>the TRACK_TITLE keyword instead of TITLE. If TRACK_TITLE is used,
>then the filename can have a space, hyphen, or underscore separating the
>track number from the track title. Keywords are case insensitive, so if
>you specify GENRE it's the same as Genre in the format field.
>
>The Ignore_ID3 option does not disable the code that determines the track
>length, just the portion that tries to read ID3 info.
>
>The patch is against CVS as of around 17:15 EST on 1/29/2003, but should
>apply cleanly for other checkout dates since it does not include any major
>changes.
>
>If anyone else is in my situation (little/no ID3 tags), can you check this
>out to see how well it works for you?
>
>Chris
>
>*****************************************************************************
>** Chris Pinkham Linux v2.2.18, Sane v1.0.4, Cajun v3.0-8 **
>** cpinkham at bc2va.org http://www.bc2va.org/chris/ **
>*****************************************************************************
>
>
>------------------------------------------------------------------------
>
>
>
More information about the mythtv-dev
mailing list