aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-09-16 00:31:22 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-09-16 01:28:53 +0530
commitf7590d47641cedbf630b909aa8f53930c4a9ce5c (patch)
tree54b37a22619f66f785741fc6ac8990c921dbe79d
parentdbf7eca917e7189ad0224fd3b7b6068b4940b71b (diff)
downloadhypervideo-pre-f7590d47641cedbf630b909aa8f53930c4a9ce5c.tar.lz
hypervideo-pre-f7590d47641cedbf630b909aa8f53930c4a9ce5c.tar.xz
hypervideo-pre-f7590d47641cedbf630b909aa8f53930c4a9ce5c.zip
[vrv] Don't raise error when thumbnails are missing
Closes #983
-rw-r--r--yt_dlp/extractor/vrv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/vrv.py b/yt_dlp/extractor/vrv.py
index 44f90acbd..419602148 100644
--- a/yt_dlp/extractor/vrv.py
+++ b/yt_dlp/extractor/vrv.py
@@ -218,7 +218,7 @@ class VRVIE(VRVBaseIE):
})
thumbnails = []
- for thumbnail in traverse_obj(video_data, ('images', 'thumbnail', ..., ...)):
+ for thumbnail in traverse_obj(video_data, ('images', 'thumbnail', ..., ...)) or []:
thumbnail_url = thumbnail.get('source')
if not thumbnail_url:
continue