projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb8b8fd
)
[tvigle] Fix like count
author
Sergey M․
<dstftw@gmail.com>
Sun, 2 Mar 2014 13:56:36 +0000
(20:56 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 2 Mar 2014 13:56:36 +0000
(20:56 +0700)
youtube_dl/extractor/tvigle.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tvigle.py
b/youtube_dl/extractor/tvigle.py
index eb826613dd419237a7cd540d5284fa69dc355b5c..4f126d67f3c6e660c57bed7720e3ccee93de0ea3 100644
(file)
--- 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']]):