[Slim-Checkins] r33841 - /7.7/trunk/server/Slim/Plugin/MP3tunes/Plugin.pm
[email protected] Wed, 15 Feb 2012 11:05:02 -0000
| Newsgroups | gmane.music.equipment.slimdevices.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mherger
Date: Wed Feb 15 03:05:02 2012
New Revision: 33841
URL: http://svn.slimdevices.com/slim?rev=33841&view=rev
Log:
Bug: n/a
Description: extract the station name from DAR.fm recordings
Modified:
7.7/trunk/server/Slim/Plugin/MP3tunes/Plugin.pm
Modified: 7.7/trunk/server/Slim/Plugin/MP3tunes/Plugin.pm
URL: http://svn.slimdevices.com/slim/7.7/trunk/server/Slim/Plugin/MP3tunes/Plugin.pm?rev=33841&r1=33840&r2=33841&view=diff
==============================================================================
--- 7.7/trunk/server/Slim/Plugin/MP3tunes/Plugin.pm (original)
+++ 7.7/trunk/server/Slim/Plugin/MP3tunes/Plugin.pm Wed Feb 15 03:05:02 2012
@@ -78,6 +78,12 @@
$title = $artist;
$artist = '';
+ # DAR.fm appends the station name to the title - move it to the $artist value
+ if ($title =~ s/ \((.*?)\)$//) {
+ $artist = $1;
+ }
+
+ # try to localize the recording date
if (my $date = Date::Parse::str2time($album)) {
$album = Slim::Utils::DateTime::shortDateF($date);
}