diff options
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 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}"'}
|