projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae65567
)
[gazeta] Relax _VALID_URL and update tests
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 16 Apr 2016 08:48:47 +0000
(16:48 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 16 Apr 2016 08:48:47 +0000
(16:48 +0800)
Closes #9196
youtube_dl/extractor/gazeta.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/gazeta.py
b/youtube_dl/extractor/gazeta.py
index ea32b621c390c390e22ebf8a6010304466700a4a..ba1c15414d2266c5bef581b9a5950f6d23bfa5bb 100644
(file)
--- a/
youtube_dl/extractor/gazeta.py
+++ b/
youtube_dl/extractor/gazeta.py
@@
-7,7
+7,7
@@
from .common import InfoExtractor
class GazetaIE(InfoExtractor):
class GazetaIE(InfoExtractor):
- _VALID_URL = r'(?P<url>https?://(?:www\.)?gazeta\.ru/(?:[^/]+/)?video/(?:
(?:main|\d{4}/\d{2}/\d{2})
/)?(?P<id>[A-Za-z0-9-_.]+)\.s?html)'
+ _VALID_URL = r'(?P<url>https?://(?:www\.)?gazeta\.ru/(?:[^/]+/)?video/(?:
main/)*(?:\d{4}/\d{2}/\d{2}
/)?(?P<id>[A-Za-z0-9-_.]+)\.s?html)'
_TESTS = [{
'url': 'http://www.gazeta.ru/video/main/zadaite_vopros_vladislavu_yurevichu.shtml',
'md5': 'd49c9bdc6e5a7888f27475dc215ee789',
_TESTS = [{
'url': 'http://www.gazeta.ru/video/main/zadaite_vopros_vladislavu_yurevichu.shtml',
'md5': 'd49c9bdc6e5a7888f27475dc215ee789',
@@
-18,9
+18,22
@@
class GazetaIE(InfoExtractor):
'description': 'md5:38617526050bd17b234728e7f9620a71',
'thumbnail': 're:^https?://.*\.jpg',
},
'description': 'md5:38617526050bd17b234728e7f9620a71',
'thumbnail': 're:^https?://.*\.jpg',
},
+ 'skip': 'video not found',
}, {
'url': 'http://www.gazeta.ru/lifestyle/video/2015/03/08/master-klass_krasivoi_byt._delaem_vesennii_makiyazh.shtml',
'only_matching': True,
}, {
'url': 'http://www.gazeta.ru/lifestyle/video/2015/03/08/master-klass_krasivoi_byt._delaem_vesennii_makiyazh.shtml',
'only_matching': True,
+ }, {
+ 'url': 'http://www.gazeta.ru/video/main/main/2015/06/22/platit_ili_ne_platit_po_isku_yukosa.shtml',
+ 'info_dict': {
+ 'id': '252048',
+ 'ext': 'mp4',
+ 'title': '"Если по иску ЮКОСа придется платить, это будет большой удар по бюджету"',
+ },
+ 'params': {
+ # m3u8 download
+ 'skip_download': True,
+ },
+ 'add_ie': ['EaglePlatform'],
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):