Fix non-liked videos
This commit is contained in:
parent
78d6044dd2
commit
158117a66a
@ -43,7 +43,10 @@ def get_info(url):
|
|||||||
else:
|
else:
|
||||||
video['dislike_count'] = info['dislike_count']
|
video['dislike_count'] = info['dislike_count']
|
||||||
|
|
||||||
|
try:
|
||||||
video['total_likes'] = int(info['dislike_count']) + int(info['like_count'])
|
video['total_likes'] = int(info['dislike_count']) + int(info['like_count'])
|
||||||
|
except:
|
||||||
|
video['total_likes'] = ""
|
||||||
video['average_rating'] = str(info['average_rating'])[0:4]
|
video['average_rating'] = str(info['average_rating'])[0:4]
|
||||||
video['formats'] = get_video_formats(info['formats'])
|
video['formats'] = get_video_formats(info['formats'])
|
||||||
video['audio_formats'] = get_video_formats(info['formats'], audio=True)
|
video['audio_formats'] = get_video_formats(info['formats'], audio=True)
|
||||||
|
Reference in New Issue
Block a user