mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-11-02 13:44:20 +09:00
[viewster] Tolerate missing synopsis (Closes #8274)
This commit is contained in:
1 parent
b605ebb609
commit
485139c15c
1 file changed
+2
-2
@@ -155,10 +155,10 @@ class ViewsterIE(InfoExtractor):
|
||||
|
||||
self._sort_formats(formats)
|
||||
|
||||
synopsis = info.get('Synopsis', {})
|
||||
synopsis = info.get('Synopsis') or {}
|
||||
# Prefer title outside synopsis since it's less messy
|
||||
title = (info.get('Title') or synopsis['Title']).strip()
|
||||
description = synopsis.get('Detailed') or info.get('Synopsis', {}).get('Short')
|
||||
description = synopsis.get('Detailed') or (info.get('Synopsis') or {}).get('Short')
|
||||
duration = int_or_none(info.get('Duration'))
|
||||
timestamp = parse_iso8601(info.get('ReleaseDate'))
|
||||
|
||||
|
||||
Reference in new issue
Block a user