Skip to content

Commit d27d3d2

Browse files
committed
fix multiple video playlists download, issue firedm#418
1 parent 03348c1 commit d27d3d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

firedm/controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,17 +672,18 @@ def download_playlist(self, download_info, **kwargs):
672672
}
673673
674674
"""
675+
playlist = self.last_active_playlist
675676
selected_items = download_info.get('selected_items', {})
676677
stream_options = download_info.setdefault('stream_options', {})
677678
download_options = download_info.setdefault('download_options', {})
678679
subtitles = download_info.get('subtitles', {})
679680

680-
for i, d in enumerate([self.last_active_playlist[idx] for idx in selected_items]):
681+
for i, d in enumerate([playlist[idx] for idx in selected_items]):
681682
if not d.all_streams:
682683
thread_after(i/2, process_video, d)
683684

684685
for idx, title in selected_items.items():
685-
d = self.last_active_playlist[idx]
686+
d = playlist[idx]
686687

687688
for i in range(10):
688689
if not d.busy:

0 commit comments

Comments
 (0)