fix error with limited state videos
This commit is contained in:
parent
07b92c35a2
commit
a0c2bde435
@ -326,9 +326,9 @@ def get_watch_page(query_string):
|
||||
uploader = html.escape(info["uploader"]),
|
||||
uploader_channel_url = '/' + info["uploader_url"],
|
||||
upload_date = upload_date,
|
||||
views = '{:,}'.format(info["view_count"]),
|
||||
likes = (lambda x: '{:,}'.format(x) if x is not None else "")(info["like_count"]),
|
||||
dislikes = (lambda x: '{:,}'.format(x) if x is not None else "")(info["dislike_count"]),
|
||||
views = (lambda x: '{:,}'.format(x) if x is not None else "")(info.get("view_count", None)),
|
||||
likes = (lambda x: '{:,}'.format(x) if x is not None else "")(info.get("like_count", None)),
|
||||
dislikes = (lambda x: '{:,}'.format(x) if x is not None else "")(info.get("dislike_count", None)),
|
||||
video_info = html.escape(json.dumps(video_info)),
|
||||
description = html.escape(info["description"]),
|
||||
video_sources = formats_html(info) + subtitles_html(info),
|
||||
|
Loading…
x
Reference in New Issue
Block a user