Re: Accessing data in songStreamController
Paul Webster <Paul.Webster.akkoen-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 17 May 2022 14:08:52 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Just tried examining $song->track()->url ... and it is the redirected to URL in my case. Perhaps because I do not have my own protocol handler in this case (and don't really want one in this plugin - at least while I can avoid it) ... so maybe http/https protocol handler has already handled it and updated $song->track()->url to point to the accepted redirection. I /think/ that Slim/Schema/RemoteTrack.pm is where the blessed structure is defined ... and if it is then attribute "redir" might be the one I need ... which would be somewhat unintuitive if correct (it comes after _url and before content_type and bitrate ... which seems to match the array dump). I see that there is a "get" routine in there so maybe I need to call it with "redir" ... next step is to work out how to do that. Paul Webster author of \"now playing\" plugins covering radio france (fip etc), planetradio (bauer - kiss, absolute, scala, jazzfm etc), kcrw, abc australia and cbc/radio-canada and, via the extra \"radio now playing\" plugin lots more - see https://forums.slimdevices.com/showthread.php?115201-announce-radio-now-playing-plugin ------------------------------------------------------------------------ Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=116388