diff options
author | pukkandan <pukkandan@gmail.com> | 2020-11-13 03:05:29 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2020-11-13 03:05:29 +0530 |
commit | fe5caa2a7c0bb6f17c6833b540691b4df4cbde90 (patch) | |
tree | 110e02e2fb8512e3d6077070fddcfff26e05b4c8 | |
parent | 9a68de12179c92b578fd00e16ff3ca63aab94c94 (diff) | |
download | hypervideo-pre-fe5caa2a7c0bb6f17c6833b540691b4df4cbde90.tar.lz hypervideo-pre-fe5caa2a7c0bb6f17c6833b540691b4df4cbde90.tar.xz hypervideo-pre-fe5caa2a7c0bb6f17c6833b540691b4df4cbde90.zip |
Handle IndexError
-rw-r--r-- | youtube_dlc/YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/YoutubeDL.py b/youtube_dlc/YoutubeDL.py index 373e83715..c85cbd88f 100644 --- a/youtube_dlc/YoutubeDL.py +++ b/youtube_dlc/YoutubeDL.py @@ -830,10 +830,10 @@ class YoutubeDL(object): try: try: temp_id = ie.extract_id(url) if callable(getattr(ie, 'extract_id', None)) else ie._match_id(url) - except AssertionError: + except (AssertionError, IndexError): temp_id = None if temp_id is not None and self.in_download_archive({'id': temp_id, 'ie_key': ie_key}): - self.to_screen("[download] [%s] %s has already been recorded in archive" % ( + self.to_screen("[%s] %s: has already been recorded in archive" % ( ie_key, temp_id)) break |