Bug 8997 - Need method to determine if an url is truely remote
: Need method to determine if an url is truely remote
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: unspecified
: All All
: -- normal (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks: 8957
  Show dependency treegraph
 
Reported: 2008-08-02 11:30 UTC by Max Spicer
Modified: 2009-07-31 10:26 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Spicer 2008-08-02 11:30:20 UTC
There doesn't appear to be a way of detecting if an URL is truely remote, i.e. something that doesn't point to a resource on the local system.  Slim::Music::Info::isRemoteURL does no such thing - it returns true for anything that matches
/^([a-zA-Z0-9\-]+):/ and is a registered protocol.  This includes URLs such as db:album.titlesearch=1 and also things like randomplay://artist.

The alarm clock code needs something like this in order to know if it makes sense to pause the currently playing track on snooze.  For example, radio streams shouldn't be paused as the user would then wake up listening to non-realtime radio.  Actually, I guess what the alarm really wants to know is whether a given URL points to "live" music.  isRemote is a good enough approximation, however.
Comment 1 Max Spicer 2008-08-06 06:50:21 UTC
Reassigning and targeting as per discussion with Andy.
Comment 2 Andy Grundman 2008-08-06 09:13:52 UTC
Change 22424.
Comment 3 James Richardson 2008-08-26 14:55:46 UTC
Verified fixed in
SqueezeCenter 7.2-22900
Controller 7.2 2873

I was able to add a variety of items as alarms
Comment 4 James Richardson 2008-12-15 12:34:39 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 5 Chris Owens 2009-07-31 10:26:23 UTC
Reduce number of active targets for SC