projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f97f9f7
)
[firsttv] keep a test videos with multiple formats
author
Remita Amine
<remitamine@gmail.com>
Sun, 21 Aug 2016 18:11:51 +0000
(19:11 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 21 Aug 2016 18:13:43 +0000
(19:13 +0100)
youtube_dl/extractor/firsttv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/firsttv.py
b/youtube_dl/extractor/firsttv.py
index af7de10b76739414c39bc9fb4df1437436f867f8..332d12020d2c58118b5724b7ad84de7ec37a49c6 100644
(file)
--- a/
youtube_dl/extractor/firsttv.py
+++ b/
youtube_dl/extractor/firsttv.py
@@
-16,6
+16,7
@@
class FirstTVIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?1tv\.ru/(?:[^/]+/)+(?P<id>[^/?#]+)'
_TESTS = [{
_VALID_URL = r'https?://(?:www\.)?1tv\.ru/(?:[^/]+/)+(?P<id>[^/?#]+)'
_TESTS = [{
+ # single format
'url': 'http://www.1tv.ru/shows/naedine-so-vsemi/vypuski/gost-lyudmila-senchina-naedine-so-vsemi-vypusk-ot-12-02-2015',
'md5': 'a1b6b60d530ebcf8daacf4565762bbaf',
'info_dict': {
'url': 'http://www.1tv.ru/shows/naedine-so-vsemi/vypuski/gost-lyudmila-senchina-naedine-so-vsemi-vypusk-ot-12-02-2015',
'md5': 'a1b6b60d530ebcf8daacf4565762bbaf',
'info_dict': {
@@
-28,8
+29,21
@@
class FirstTVIE(InfoExtractor):
'duration': 2694,
},
}, {
'duration': 2694,
},
}, {
+ # multiple formats
'url': 'http://www.1tv.ru/shows/dobroe-utro/pro-zdorove/vesennyaya-allergiya-dobroe-utro-fragment-vypuska-ot-07042016',
'url': 'http://www.1tv.ru/shows/dobroe-utro/pro-zdorove/vesennyaya-allergiya-dobroe-utro-fragment-vypuska-ot-07042016',
- 'only_matching': 'true',
+ 'info_dict': {
+ 'id': '364746',
+ 'ext': 'mp4',
+ 'title': 'Весенняя аллергия. Доброе утро. Фрагмент выпуска от 07.04.2016',
+ 'description': 'md5:a242eea0031fd180a4497d52640a9572',
+ 'thumbnail': 're:^https?://.*\.(?:jpg|JPG)$',
+ 'upload_date': '20160407',
+ 'duration': 179,
+ 'formats': 'mincount:3',
+ },
+ 'params': {
+ 'skip_download': True,
+ },
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):