From 498f560638e805fc7bafe77dc1ef3bd32ef3fe76 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 24 Mar 2021 01:15:53 +0530 Subject: 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 --- yt_dlp/utils.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'yt_dlp/utils.py') 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. -- cgit v1.2.3