mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-22 15:02:56 +08:00
[tvigle] Fix like count
This commit is contained in:
parent
fb8b8fdd62
commit
bf4adcac66
@ -7,6 +7,7 @@ from .common import InfoExtractor
|
|||||||
from ..utils import (
|
from ..utils import (
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
clean_html,
|
clean_html,
|
||||||
|
int_or_none,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +43,7 @@ class TvigleIE(InfoExtractor):
|
|||||||
description = clean_html(description)
|
description = clean_html(description)
|
||||||
thumbnail = video_data.get('img')
|
thumbnail = video_data.get('img')
|
||||||
upload_date = unified_strdate(video.get('date'))
|
upload_date = unified_strdate(video.get('date'))
|
||||||
like_count = video.get('vtp')
|
like_count = int_or_none(video.get('vtp'))
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for num, (format_id, format_note) in enumerate([['low_file', 'SQ'], ['file', 'HQ'], ['hd', 'HD 720']]):
|
for num, (format_id, format_note) in enumerate([['low_file', 'SQ'], ['file', 'HQ'], ['hd', 'HD 720']]):
|
||||||
|
Loading…
Reference in New Issue
Block a user