youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit bf4adcac66941c39477d97197d0d80252b7e1541
parent fb8b8fdd628ef8f88f4e596c197f47c9fb42d93f
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun,  2 Mar 2014 20:56:36 +0700

[tvigle] Fix like count

Diffstat:
Myoutube_dl/extractor/tvigle.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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']]):