mherger wrote: 
>  I'm not able to reproduce mh_'s issue. But imho your changed regex
> would work.

The problem is a bit difficult to reproduce.  This is the method I find
that is most likely to show problem
1. Stop LMS
2. clear cache.db
3. start LMS, play the stream.  
4. Stop and clear playlist
5. Wait about 5 minutes (time fort some cache to expoire I think)
6. Play the same URL again. 

To "see" the problem even if it doesn't stop the stream playing - the
best log message to what is happening is Slim::Music::Info line 265 (set
logging database.info to INFO) 

Code:
--------------------
    
        main::INFOLOG && $log->info("Content-Type for $url is cached as $type");
  
--------------------



The log message will appear twice.

Code:
--------------------
    
  16-04-19 07:55:32.9670] Slim::Web::JSONRPC::requestMethod (443) request not 
dispatchable!
  [16-04-19 07:55:51.4268] Slim::Music::Info::setTitle (295) Adding title 
http://ice1.somafm.com/illstreet-128-aac for 
http://ice1.somafm.com/illstreet-128-aac
  [16-04-19 07:55:51.8293] Slim::Music::Info::setContentType (265) Content-Type 
for http://ice1.somafm.com/illstreet-128-aac is cached as aac
  [16-04-19 07:55:52.2340] Slim::Music::Info::setContentType (265) Content-Type 
for http://ice1.somafm.com/illstreet-128-aac is cached as mp3
  [16-04-19 07:55:52.2348] Slim::Music::Info::setCurrentTitle (542) Setting 
title for http://ice1.somafm.com/illstreet-128-aac to Illinois Street Lounge 
[SomaFM]
  [16-04-19 07:55:52.2350] Slim::Music::Info::setTitle (295) Adding title 
Illinois Street Lounge [SomaFM] for http://ice1.somafm.com/illstreet-128-aac
  
--------------------



Before the patch the log will always say Content-Type is "aac" after the
patch it will be "mp3". It shows Kimmo's patch is deficient.

This patch does not always cause the stream to fail as it seems there is
some other cache which remembers the original "aac".


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=105467

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

Reply via email to