[mythtv-commits] Ticket #2592: Sorting problem in MythMusic
MythTV
mythtv at cvs.mythtv.org
Sat Apr 28 15:01:10 UTC 2007
#2592: Sorting problem in MythMusic
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: paulh
Type: defect | Status: new
Priority: major | Milestone: 0.21
Component: mythmusic | Version: 0.20
Severity: medium | Resolution:
-----------------------+----------------------------------------------------
Changes (by paulh):
* owner: ijr => paulh
Comment:
I think the best solution, which has already been mentioned, is to make
sure your files are properly tagged.
The second solution is to rename your files to a format where MythMusic
can get the proper track numbers from the filename. So you would use
something like
{{{
artist_name/album_name/01-track_name
}}}
You must use '-' as the separator here otherwise it wont work and you need
to change the 'Filename Format' setting to something like
'ARTIST/ALBUM/TRACK_TITLE' If anyone cares enough about this and wants to
improve the filename parsing, maybe to make extracting the track number a
little smarter, take a look at MetatIO::readFromFilename() in metaio.cpp.
For people who can't or don't wont to rename there files I'm just about to
commit something that at least sorts the tracks by the track title if it
can't do it using the track numbers. It isn't perfect for example if you
have tracks named something like 1-Track1 2-Track2 ... 10-Track10 then
they will be displayed as 1-Track1 10-Track10 2-Track2, that is they are
sorted alphabetically not numerically but it is better than what we have
now.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2592#comment:3>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list