Fix gstreamer stored playlist controller with respect to tracks that don't exist in library (and test stub for issue)
This commit is contained in:
parent
09ffd91845
commit
bfd34eb9e0
@ -132,7 +132,10 @@ class GStreamerStoredPlaylistsController(BaseStoredPlaylistsController):
|
||||
name = os.path.basename(m3u)[:len('.m3u')]
|
||||
tracks = []
|
||||
for uri in parse_m3u(m3u):
|
||||
tracks.append(self.backend.library.lookup(uri))
|
||||
try:
|
||||
tracks.append(self.backend.library.lookup(uri))
|
||||
except LookupError, e:
|
||||
logger.error('Playlist item could not be added: %s', e)
|
||||
playlist = Playlist(tracks=tracks, name=name)
|
||||
|
||||
# FIXME playlist name needs better handling
|
||||
|
||||
@ -1074,6 +1074,9 @@ class BaseStoredPlaylistsControllerTest(object):
|
||||
self.stored.save(playlist)
|
||||
self.assert_(playlist in self.stored.playlists)
|
||||
|
||||
def test_playlist_with_unknown_track(self):
|
||||
raise SkipTest
|
||||
|
||||
|
||||
class BaseLibraryControllerTest(object):
|
||||
artists = [Artist(name='artist1'), Artist(name='artist2'), Artist()]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user