[mythtv-commits] Ticket #7087: CDRip should have an Alphabetic subdirectory option

MythTV mythtv at cvs.mythtv.org
Thu Sep 17 13:56:20 UTC 2009


#7087: CDRip should have an Alphabetic subdirectory option
----------------------------------+-----------------------------------------
 Reporter:  jord.swart at gmail.com  |       Owner:  ijr    
     Type:  defect                |      Status:  new    
 Priority:  minor                 |   Milestone:  unknown
Component:  MythTV - General      |     Version:  unknown
 Severity:  medium                |     Mlocked:  0      
----------------------------------+-----------------------------------------
 The current CDRIP only features GENRE, ALBUM, ARTIST, TRACK and TITLE for
 creating subdirectories. It would be nice to have a possibility to also
 create and alphabetic structure:

 P/Portishead/Dummy/01....
 P/Pearl Jam/Ten/01 ...

 I'm not a programmer, but the following diff for cdrip.cpp should be able
 to do such a thing. I am aware that I did not check all the dependencies
 (i18n files etc.) or the user help files. I am also aware that it is a
 very primitive patch. Ideally bands like "the police" should end up in the
 "P" category IMHO but that might just be a question of taste.

 939c939
 <     QRegExp rx("(GENRE|ARTIST|ALBUM|TRACK|TITLE|YEAR)");
 ---
 >     QRegExp rx("(ALPHABETIC|GENRE|ARTIST|ALBUM|TRACK|TITLE|YEAR)");
 955c955,958
 <             if ((rx.capturedTexts()[1] == "ARTIST") &&
 (track->FormatArtist() != ""))
 ---
 >             if ((rx.capturedTexts()[1] == "ALPHABETIC") &&
 (track->FormatArtist() != ""))
 >                 filename +=
 fixFileToken(track->FormatArtist()).substr(0,0);
 >
 >           if ((rx.capturedTexts()[1] == "ARTIST") &&
 (track->FormatArtist() != ""))

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7087>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list