Remove 'TODO: check if playable'

We don't need to as each backend a title is still playable.
The backend must be able to handle unplayable title.

Replace for loop with arrar.extend()
This commit is contained in:
Jens Luetjen 2016-03-31 22:07:53 +02:00
parent 3251722a28
commit 67044cecab

View File

@ -667,13 +667,7 @@ class TracklistController(object):
self.set_repeat(state.repeat)
self.set_single(state.single)
if 'tracklist' in coverage:
if state.next_tlid > self._next_tlid:
self._next_tlid = state.next_tlid
self._next_tlid = max(state.next_tlid, self._next_tlid)
self._tl_tracks = []
for track in state.tl_tracks:
# TODO: check if any backend will play the track.
# Could be an issue with music streaming services
# (login), disabled extensions and automatically
# generated playlists (pandora).
self._tl_tracks.append(track)
self._tl_tracks.extend(state.tl_tracks)
self._increase_version()