]> git.draconx.ca Git - mpdhacks.git/commitdiff
mpdmenu: Update title menu cases.
authorNick Bowler <nbowler@draconx.ca>
Tue, 22 Jul 2008 23:50:38 +0000 (19:50 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 29 Jun 2019 16:05:58 +0000 (12:05 -0400)
mpdmenu.pl

index ffe2f928f5561369eb4017febf992fa44b06b84f..b7072cfd812dc4a9063d04334809d5aea7297998 100755 (executable)
@@ -186,6 +186,7 @@ if (defined $album) {
        s/ -Practice Track-//;                        # Fair Heaven
        s/〜世界で一番アナタが好き〜//;               # Pure Heart
        s/〜彼方への哀歌//;                           # 十二幻夢
+       s/ sora no uta ver.//;                       # 美しい星
 
        s/\s*-remix-$//; # Otherwise "D-THREAD -remix-" doesn't work right.
 
@@ -193,10 +194,10 @@ if (defined $album) {
        s/\s*$ob.*(style|mix|edit|edition|ver\.?|version|カラオケ)$cb?$//i;
 
        # Deal with titles like "blah (without XYZ)".
-       s/\s*$ob((e\.)?piano|english|japanese|inst|tv|without|w\/o|off|back|short|karaoke|game).*//i;
+       s/\s*$ob\s*((e\.)?piano|english|japanese|inst|tv|without|w\/o|off|back|short|karaoke|game).*//i;
 
        # Deal with titles like "blah instrumental".
-       s/\s+(instrumental|off vocal|short)(\s+(size|version|s))?$//i;
+       s/\s+(instrumental|off vocal|short|tv)([\s-]+(size|version|s))?$//i;
        s/\s+without\s+\w+$//i;
 
        my $basetitle  = $_;