kingosticks / mopidy-tunein

Mopidy extension for playing music from tunein
Apache License 2.0
65 stars 14 forks source link

Stations that start with an advertisement #6

Closed jackrichardson closed 10 years ago

jackrichardson commented 10 years ago

Hello, Trying to listen to 98.7 WFMT (a Chicago Classical station), and when playing through my iPhone, through the TuneIn app, there is a 20 second advert before the station begins playing. When I play WFMT (tunein:station:s28807) through pimusicbox, I hear the 20 second advert, but that's all. It doesn't get to the actual station. Is the problem because of the advert?

kingosticks commented 10 years ago

Hi. Yep, it's the advert. The playlist for this station contains two streams, a short advert stream and then the live broadcast stream.

$ curl http://www.wfmt.com/res/streaming/live/ad1/ad_b/wfmtMP3web.pls
[playlist]
NumberOfEntries=2
File1=http://wttw.vo.llnwd.net/o16/wfmt/live/spex2012/spex_1212.mp3
Title1=98.7WFMT Broadcast: Supported by Sponsors and Members
Length1=24
File2=http://wttw.ic.llnwd.net/stream/wttw_wfmt_MP3
Title2=98.7WFMT Live Broadcast
Length2=-1
Version=2

Unfortunately the way mopidy-tunein currently works, only the first stream is taken and I think some fundamental changes are needed to support this kind of thing properly. However, in the meantime I will hack something and make a new release. Hopefully I can do this before I leave for my holidays tomorrow!

Thanks for taking the time to report these bugs, it's much appreciated.

kingosticks commented 10 years ago

'Fixed' via 4c1d823 and released v0.1.2

jackrichardson commented 10 years ago

Wow, that was quick! I'll try it later on. Many thanks