ElMuto;447951 Wrote: 
> In order deepen my findings, I modified the method "normalize_location"
> in /usr/share/perl5/Slim/Plugin/iTunes/Common.pm and wanted to see, what
> happens. So I inserted following code-snippet at Line 358 (just before
> returning $url):
> 
> # ElMuto's extension
> # replace %26 by ampersand to get
> # matching file urls in SCs DB
> $log->warn("original url was $url");
> $url =~ s/%26/\&/;
> $log->warn("..changed url is $url");
> # end of ElMuto's extension
> 
> Interestingly enough, even after restart of the squeezecenter-service,
> this code-modification seems to have no effect in the execution. Not
> even the messages are written to the log.
> 
> Does anybody know, what I can do to test my code modifications on a
> standard Ubuntu-SC-installation? I would really like to avoid setting up
> an SC-dev-environment for testing one line of effective code.

If you like to change the behavior in the iTunes Statistics Import
scanning module, you will need to change the files within the TrackStat
plugin. You probably use the latest official version of TrackStat where
the code is packaged in a *.par file which makes it a bit hard to
modify. Anyway, to make it a bit easier, a source code version of
TrackStat 2.8 is attached to this post. 

The correct way to install it is:
1. Uninstall TrackStat 2.8 through Extension Downloader (if you have
installed it that way) or alternatively remove it manually if you have
downloaded the zip and unzipped it yourself.
2. Shutdown SqueezeCenter
3. Unzip the attached TrackStat-2.8 zip in the
/var/lib/squeezecenter/Plugins directory
4. Start SqueezeCenter and make sure TrackStat still works

After this you are ready to do any modifications to the files, after
you have modified something you will need to restart SqueezeCenter for
the changes to take effect.

The file you should make modifications in are:
/var/lib/squeezecenter/Plugins/TrackStat/lib/Plugins/TrackStat/iTunes/Import.pm


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=66475

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to