Saving URI crashes playlists

Bug #826395 reported by Cthol
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Listen
New
Undecided
Unassigned

Bug Description

Starting from a sane state, I click "play a uri", enter "http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u", play it. Everything is OK so far.
Now I click the "Save playlist" button and I get the expected playlist.
I stop and restart Listen and all my playlists are gone.
I have to delete ".config/listen/playlist*" files to get a working player back.
Obviously, there's something wrong with saving M3U URI as one can see on the attached GHex screenshot.
Restarting Listen in debugging mode shows (expectedly):
Traceback (most recent call last):
  File "/usr/lib/listen/source/__init__.py", line 260, in __on_db_loaded
    items = [ (pl.name, self._source_item_klass(pl)) for pl in ListenDB.get_playlists(self._type) ]
  File "/usr/lib/listen/source/__init__.py", line 133, in __init__
    self.widget = ScrolledWindow(self._playlist_songview("playlist", pl))
  File "/usr/lib/listen/widget/song_view.py", line 380, in __init__
    self.get_model().fill(pl.get_songs())
  File "/usr/lib/listen/library.py", line 1331, in get_songs
    return ListenDB.get_songs_from_uris(self.__uris)
  File "/usr/lib/listen/library.py", line 596, in get_songs_from_uris
    return [ self.__songs[vfs.realuri(uri)] for uri in uris ]
KeyError: 'http://www.tv-radio.com/station/fip_mp3/fip_mp3-128k.m3u'

Same things happen with "http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3" uri.

Listen is 0.6.5, Ubuntu is 11.04, Gstreamer is 0.10.32, Python is 2.7.1.

Revision history for this message
Cthol (cthol) wrote :
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.