diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-24 01:15:53 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-24 01:57:50 +0530 |
commit | 498f560638e805fc7bafe77dc1ef3bd32ef3fe76 (patch) | |
tree | 24cdcc0145e42d2fb36a06eb500ceb10750b9cce /yt_dlp/utils.py | |
parent | 394dcd448646fdaebda38b83fddcfbe6f62ded31 (diff) | |
download | hypervideo-pre-498f560638e805fc7bafe77dc1ef3bd32ef3fe76.tar.lz hypervideo-pre-498f560638e805fc7bafe77dc1ef3bd32ef3fe76.tar.xz hypervideo-pre-498f560638e805fc7bafe77dc1ef3bd32ef3fe76.zip |
Ability to load playlist infojson
* If `--no-clean-infojson` is given, the video ids are saved/loaded from in the infojson along with their playlist index
* If a video entry that was not saved is requested, we fallback to using `webpage_url` to re-extract the entries
Related: https://github.com/yt-dlp/yt-dlp/issues/190#issuecomment-804921024
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index eb194589e..3a8725c21 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -2423,6 +2423,15 @@ class DownloadError(YoutubeDLError): self.exc_info = exc_info +class EntryNotInPlaylist(YoutubeDLError): + """Entry not in playlist exception. + + This exception will be thrown by YoutubeDL when a requested entry + is not found in the playlist info_dict + """ + pass + + class SameFileError(YoutubeDLError): """Same File exception. |