]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[tvigle] Fix like count
authorSergey M․ <dstftw@gmail.com>
Sun, 2 Mar 2014 13:56:36 +0000 (20:56 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 2 Mar 2014 13:56:36 +0000 (20:56 +0700)
youtube_dl/extractor/tvigle.py

index eb826613dd419237a7cd540d5284fa69dc355b5c..4f126d67f3c6e660c57bed7720e3ccee93de0ea3 100644 (file)
@@ -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']]):