projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
681b9ca
)
[sportbox] Remove view count
author
Sergey M․
<dstftw@gmail.com>
Sun, 26 Oct 2014 01:00:01 +0000
(08:00 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 26 Oct 2014 01:00:01 +0000
(08:00 +0700)
youtube_dl/extractor/sportbox.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sportbox.py
b/youtube_dl/extractor/sportbox.py
index 19cc976e3d3c9c7cff875f26e63e25a827fb8073..b9cd35109158a31fa238c5d07a942008b36c0750 100644
(file)
--- a/
youtube_dl/extractor/sportbox.py
+++ b/
youtube_dl/extractor/sportbox.py
@@
-26,7
+26,6
@@
class SportBoxIE(InfoExtractor):
'timestamp': 1411896237,
'upload_date': '20140928',
'duration': 4846,
'timestamp': 1411896237,
'upload_date': '20140928',
'duration': 4846,
- 'view_count': int,
},
'params': {
# m3u8 download
},
'params': {
# m3u8 download
@@
-65,8
+64,6
@@
class SportBoxIE(InfoExtractor):
r'<span itemprop="uploadDate">([^<]+)</span>', webpage, 'timestamp', fatal=False))
duration = parse_duration(self._html_search_regex(
r'<meta itemprop="duration" content="PT([^"]+)">', webpage, 'duration', fatal=False))
r'<span itemprop="uploadDate">([^<]+)</span>', webpage, 'timestamp', fatal=False))
duration = parse_duration(self._html_search_regex(
r'<meta itemprop="duration" content="PT([^"]+)">', webpage, 'duration', fatal=False))
- view_count = int_or_none(self._html_search_regex(
- r'<span>Просмотров: (\d+)</span>', player, 'view count', fatal=False))
return {
'id': video_id,
return {
'id': video_id,
@@
-76,6
+73,5
@@
class SportBoxIE(InfoExtractor):
'thumbnail': thumbnail,
'timestamp': timestamp,
'duration': duration,
'thumbnail': thumbnail,
'timestamp': timestamp,
'duration': duration,
- 'view_count': view_count,
'formats': formats,
}
'formats': formats,
}