fix: error if failed to fetch duration from url

This commit is contained in:
Terry Geng committed 2020-03-22 14:50:42 +08:00
1 parent 190aac37e1
commit 21c8e276c9
2 files changed
+2 -1

No files matched your search

+2
View File
@@ -130,6 +130,8 @@ class URLItem(BaseItem):
return True
except youtube_dl.utils.DownloadError:
pass
except KeyError: # info has no 'duration'
break
if not succeed:
self.ready = 'failed'