aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-03-02 20:56:36 +0700
committerSergey M․ <dstftw@gmail.com>2014-03-02 20:56:36 +0700
commitbf4adcac66941c39477d97197d0d80252b7e1541 (patch)
tree8dd1a99744ba4efea82cfcf9837032d8e2e7a823 /youtube_dl
parentfb8b8fdd628ef8f88f4e596c197f47c9fb42d93f (diff)
[tvigle] Fix like count
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/tvigle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tvigle.py b/youtube_dl/extractor/tvigle.py
index eb826613d..4f126d67f 100644
--- a/youtube_dl/extractor/tvigle.py
+++ b/youtube_dl/extractor/tvigle.py
@@ -7,6 +7,7 @@ from .common import InfoExtractor
from ..utils import (
unified_strdate,
clean_html,
+ int_or_none,
)
@@ -42,7 +43,7 @@ class TvigleIE(InfoExtractor):
description = clean_html(description)
thumbnail = video_data.get('img')
upload_date = unified_strdate(video.get('date'))
- like_count = video.get('vtp')
+ like_count = int_or_none(video.get('vtp'))
formats = []
for num, (format_id, format_note) in enumerate([['low_file', 'SQ'], ['file', 'HQ'], ['hd', 'HD 720']]):