Which plugin is the bug/enhancement related to ?
TrackStat/CustomScan
What version of SlimServer/SqueezeCeneter are you using? On what operating
system?
Server 7.3.3 on Ubuntu 9.04
Could you describe the problem or enhancment ?
Running iTunes import scan doesn't import anything. Turning on debug
showed that the iTunes path/filename wasn't being converted properly to the
SqueezeCenter path/filename in
Plugins::TrackStat::iTunes::Import::normalize_location.
I've updated the function as below, to resolve the error in my case, but
this may not be the correct way to resolve it, with my little knowledge of
the plugin and variable names. Changes are adding the setting of $iBase
and changing the setting of $base.
if ($explicit_path) {
# find the new base location. make sure it ends with a slash.
my $iBase =
Plugins::CustomScan::Plugin::getCustomScanProperty("itunesmusicpath");
my $base = $explicit_path;
$url = $stripped;
$url =~ s/$iBase/$base/isg;
if($replaceExtension) {
my $path = Slim::Utils::Misc::pathFromFileURL($url);
if(! -e $path) {
$url =~ s/\.[^.]*$/$replaceExtension/isg;
}
}
$url =~ s/(\w)\/\/(\w)/$1\/$2/isg;
} else {
My setup is as follows:
PC1 - Ubuntu 9.04 running SqueezeCenter 7.3.3
Music stored at /usr/fileserver2/music
iTunes XML mapped at /usr/fileserver2/music/_data/iTunes
PC2 - Windows XP running iTunes 8.2.1.6
Music mapped at V:/music
Settings for Export iTunes are:
Output directory = /usr/fileserver2/music/_data/squeezecenter
Music path in iTunes = V:/music
Music path in SlimServer = /usr/fileserver2/music
Settings for Import iTunes are:
iTunes Library XML file = /usr/fileserver2/music/_data/iTunes/iTunes Music
Library.xml
Music path in SlimServer = /usr/fileserver2/music
Example of error when importing:
[09-08-17 14:35:45.1170]
Plugins::TrackStat::iTunes::Import::normalize_location (689) normalized
file://localhost/V:/music/Texas/The%20Hush/07%20-%20Day%20After%20Day%20-%20Texa
s%20-%20The%20Hush.mp3
to
file:///V:/music/Texas/The%20Hush/07%20-%20Day%20After%20Day%20-%20Texas%20-%20T
he%20Hush.mp3
[09-08-17 14:35:45.1175] Plugins::TrackStat::iTunes::Import::handleTrack
(424) file not found: /V:/music/Texas/The Hush/07 - Day After Day - Texas -
The Hush.mp3
Hope this helps.
PS. Excellent plugins ... they're much appreciated.
Original issue reported on code.google.com by mproc...@googlemail.com on 17 Aug 2009 at 6:00
Original issue reported on code.google.com by
mproc...@googlemail.com
on 17 Aug 2009 at 6:00