erland;340224 Wrote: 
> Could you on the line before the return line insert the following three
> lines:
> > 
Code:
--------------------
  >   > 
  > Slim::Utils::Misc::msg("Recent days: $day");
  > Slim::Utils::Misc::msg("Current time is: ".time());
  > Slim::Utils::Misc::msg("Calculation: ".(time() - 24*3600*$days));
  > 
--------------------
> > 
> 
> Now re-package it and run and see what you get in the log from these
> log messages.

I suppose you meant:

Code:
--------------------
    
  Slim::Utils::Misc::msg("Recent days: $days");
  
--------------------

Notice the 's' in '$days'.
Because with '$day' I got this error:

Code:
--------------------
    
  "[08-09-14 18:16:21.3446] Slim::bootstrap::tryModuleLoad (271) Warning: 
Module [Plugins::TrackStat::Plugin] failed to load:
  Global symbol "$day" requires explicit package name at 
Plugins/TrackStat/Statistics/TopRatedRecent.pm line 643."
  
--------------------


Anyway, with '$days' TrackStat starts without any problem. I really
don't understand this. In fact it is a complete surprise for me. The
three lines you suggested were not supposed to be a cure right? But in
fact they fixed the problem. Very very strange.

By the way, where does the 'Slim::Utils::Misc::msg("message")' output
go to? 
I cannot find it in the logfiles nor in stout when I start
Squeezecenter likes this:

Code:
--------------------
    
  /usr/libexec/squeezecenter-server --debug plugin.trackstat=debug --user 
squeezecenter --d_startup -diag
  
--------------------


I will test things a but further now. See if TrackStat behaves normal
when I point Squeezecenter to my music directory. I was working on a
test directory with only a few songs.

I keep you posted.
Erland, thanks for your time.

Jeroen


-- 
boklof
------------------------------------------------------------------------
boklof's Profile: http://forums.slimdevices.com/member.php?userid=18757
View this thread: http://forums.slimdevices.com/showthread.php?t=52278

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

Reply via email to