Playing m3u playlists from web

Bug #156197 reported by moadin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Medium
Unassigned

Bug Description

After a m3u playlist is given via "Open URL", nothing happens (e.g. commercial station http://metafiles.gl-systemhaus.de/wdr/channel_einslive.m3u).
The log says "Importing http://metafiles.gl-systemhaus.de/wdr/channel_einslive.m3u" but in the program nothing happens.

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

Thanks, it's fixed now. Was a bug in how Exaile handles non-extended M3U files.

Changed in exaile:
assignee: nobody → sjohannes
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
von_klatka (von-klatka) wrote :

Using either stable .deb release or exaile-bzr_0.2.11-bzr1466_i386.deb (on Ubuntu 7.10)
I'm still unable to open some m3u radio stations such as this:
 http://viphttp.yacast.net/V4/radiofrance/franceinter_hd.m3u
that translates into this:
#EXTM3U

#EXTINF:-1,France Inter

http://213.205.96.91:9915

but opening the above url works fine

And exaile crashes when opening these urls from http://players.creacast.com/creacast/france_info/playlist.m3u
#EXTM3U
#EXTINF:-1,France Info
http://france-info1.creacast.com
#EXTINF:-1,France Info (backup)
http://str2.creacast.com/france_info_64

Revision history for this message
Johannes Sasongko (sjohannes) wrote :
Changed in exaile:
status: Fix Committed → Fix Released
Revision history for this message
Alexander Bethke (oolongbrothers) wrote :

Hi, this bug has re-appeared and active in current development branch 0.3.x. Upon adding an m3u that only contains the urls and no #-tags (like the einslive one mentioned in the original report above) as a radio station Exaile logs:

Exception in thread Thread-20:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/media/Data/Entwicklung/exaile/xlgui/panel/radio.py", line 195, in _do_add_playlist
    pl = playlist.import_playlist(uri)
  File "/media/Data/Entwicklung/exaile/xl/playlist.py", line 334, in import_playlist
    return import_from_m3u(path)
  File "/media/Data/Entwicklung/exaile/xl/playlist.py", line 120, in import_from_m3u
    comma_separated = current_extinf[8:].split(",", 1)
TypeError: 'NoneType' object is unsubscriptable

I attached a patch to fix the problem. I just added a check if there had been any extinf collected for the track. In case there hasn't, it just uses default values for title and duration instead of failing to parse non-existent data.

Of course it's a pity that big content providers like German public broadcasters supply "m3u"s with no meta data whatsoever, but they should be still playable in Exaile.

Regards, Alex

Revision history for this message
Alexander Bethke (oolongbrothers) wrote :

Hm, how should this work here, should I reset the status of the bug to new? Or just leave it?

-Alex

Revision history for this message
reacocard (reacocard) wrote :

patch committed trunk/2821

And yes, you should have set the status back to an open state, probably Confirmed in this case.

Changed in exaile:
assignee: Johannes Sasongko (sjohannes) → nobody
milestone: 0.2.12 → 0.3.1
status: Fix Released → Fix Committed
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.