diff options
author | ashnitman <alex.shnitman@cyberark.com> | 2020-12-06 12:42:11 +0200 |
---|---|---|
committer | ashnitman <alex.shnitman@cyberark.com> | 2020-12-06 12:42:11 +0200 |
commit | 07cc86c7d97f6d82e97287433fcda9b4d8f956e6 (patch) | |
tree | bbcd9dcca702bd655aae2de791e79baf83330b4b /app | |
parent | upgrade dependencies (diff) | |
download | metube-07cc86c7d97f6d82e97287433fcda9b4d8f956e6.tar.gz metube-07cc86c7d97f6d82e97287433fcda9b4d8f956e6.tar.bz2 metube-07cc86c7d97f6d82e97287433fcda9b4d8f956e6.zip |
update playlist suppot with "url_transparent" entry type
Diffstat (limited to 'app')
-rw-r--r-- | app/ytdl.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)
|