fix url_transparent handling (closes #95)

This commit is contained in:
Alex Shnitman 2021-12-22 20:19:19 +02:00
parent 743cff1c87
commit a2d5cd0b1b
1 changed files with 1 additions and 1 deletions

View File

@ -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}"'}