diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-24 01:21:39 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-24 03:24:23 +0530 |
commit | 88f23a18e0a0f5f18ed167b6a319c54255c5dd13 (patch) | |
tree | c2f10fb8ae0e07e88c84b93b555dbfc8cc2cbc61 /yt_dlp/YoutubeDL.py | |
parent | bb66c24797edd8740a27efb8d77669dbb0e859b7 (diff) |
[docs,cleanup] Fix linter and misc cleanup
Closes #2419
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 97f9099ff..4af77cae2 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -484,6 +484,7 @@ class YoutubeDL(object): extractor_args: A dictionary of arguments to be passed to the extractors. See "EXTRACTOR ARGUMENTS" for details. Eg: {'youtube': {'skip': ['dash', 'hls']}} + mark_watched: Mark videos watched (even with --simulate). Only for YouTube youtube_include_dash_manifest: Deprecated - Use extractor_args instead. If True (default), DASH manifests and related data will be downloaded and processed by extractor. @@ -3504,7 +3505,7 @@ class YoutubeDL(object): delim=self._format_screen('\u2500', self.Styles.DELIM, '-', test_encoding=True)) def render_thumbnails_table(self, info_dict): - thumbnails = list(info_dict.get('thumbnails')) + thumbnails = list(info_dict.get('thumbnails') or []) if not thumbnails: return None return render_table( |