From 07cc86c7d97f6d82e97287433fcda9b4d8f956e6 Mon Sep 17 00:00:00 2001 From: ashnitman Date: Sun, 6 Dec 2020 12:42:11 +0200 Subject: update playlist suppot with "url_transparent" entry type --- app/ytdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/ytdl.py b/app/ytdl.py index b787ae6..80706db 100644 --- a/app/ytdl.py +++ b/app/ytdl.py @@ -140,7 +140,7 @@ class DownloadQueue: if any(res['status'] == 'error' for res in results): return {'status': 'error', 'msg': ', '.join(res['msg'] for res in results if res['status'] == 'error' and 'msg' in res)} return {'status': 'ok'} - elif etype == 'video' or etype == 'url' and 'id' in entry: + elif etype == 'video' or etype.startswith('url') and 'id' in entry: if entry['id'] not in self.queue: dl = DownloadInfo(entry['id'], entry['title'], entry.get('webpage_url') or entry['url']) self.queue[entry['id']] = Download(self.config.DOWNLOAD_DIR, quality, dl) -- cgit