aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shnitman <alexta69@gmail.com>2021-12-22 20:19:19 +0200
committerAlex Shnitman <alexta69@gmail.com>2021-12-22 20:19:19 +0200
commita2d5cd0b1b637e709196c59cb9a770b2c0bda364 (patch)
tree458ab46247e0ea88bda2463525b9c9bd8b4fd877
parentfix typo (closes #94) (diff)
downloadmetube-a2d5cd0b1b637e709196c59cb9a770b2c0bda364.tar.gz
metube-a2d5cd0b1b637e709196c59cb9a770b2c0bda364.tar.bz2
metube-a2d5cd0b1b637e709196c59cb9a770b2c0bda364.zip
fix url_transparent handling (closes #95)
-rw-r--r--app/ytdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/ytdl.py b/app/ytdl.py
index e873d32..a5e60b7 100644
--- a/app/ytdl.py
+++ b/app/ytdl.py
@@ -172,7 +172,7 @@ class DownloadQueue:
self.event.set()
await self.notifier.added(dl)
return {'status': 'ok'}
- elif etype == 'url':
+ elif etype.startswith('url'):
return await self.add(entry['url'], quality, format, already)
return {'status': 'error', 'msg': f'Unsupported resource "{etype}"'}
bgstack15