diff options
author | Alex Shnitman <alexta69@gmail.com> | 2021-12-22 20:19:19 +0200 |
---|---|---|
committer | Alex Shnitman <alexta69@gmail.com> | 2021-12-22 20:19:19 +0200 |
commit | a2d5cd0b1b637e709196c59cb9a770b2c0bda364 (patch) | |
tree | 458ab46247e0ea88bda2463525b9c9bd8b4fd877 | |
parent | fix typo (closes #94) (diff) | |
download | metube-a2d5cd0b1b637e709196c59cb9a770b2c0bda364.tar.gz metube-a2d5cd0b1b637e709196c59cb9a770b2c0bda364.tar.bz2 metube-a2d5cd0b1b637e709196c59cb9a770b2c0bda364.zip |
fix url_transparent handling (closes #95)
-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 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}"'}
|