Playing m3u playlists from web

Bug #156197 reported by moadin on 2007-10-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

After a m3u playlist is given via "Open URL", nothing happens (e.g. commercial station
The log says "Importing" but in the program nothing happens.

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
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:
that translates into this:

#EXTINF:-1,France Inter

but opening the above url works fine

And exaile crashes when opening these urls from
#EXTINF:-1,France Info
#EXTINF:-1,France Info (backup)

Changed in exaile:
status: Fix Committed → Fix Released

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/", line 525, in __bootstrap_inner
  File "/usr/lib/python2.6/", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/media/Data/Entwicklung/exaile/xlgui/panel/", line 195, in _do_add_playlist
    pl = playlist.import_playlist(uri)
  File "/media/Data/Entwicklung/exaile/xl/", line 334, in import_playlist
    return import_from_m3u(path)
  File "/media/Data/Entwicklung/exaile/xl/", 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

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


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) on 2010-03-16
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers