projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2b2c7e
)
[drtv] Update tests
author
Sergey M․
<dstftw@gmail.com>
Fri, 2 Sep 2016 16:53:17 +0000
(23:53 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 2 Sep 2016 16:53:17 +0000
(23:53 +0700)
youtube_dl/extractor/drtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/drtv.py
b/youtube_dl/extractor/drtv.py
index 7122449a3e9f36e12804aa968a37484814d6a968..88d096b307cdf6d484ef6b89253f6cdbcb82deb0 100644
(file)
--- a/
youtube_dl/extractor/drtv.py
+++ b/
youtube_dl/extractor/drtv.py
@@
-16,21
+16,23
@@
class DRTVIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?dr\.dk/(?:tv/se|nyheder)/(?:[^/]+/)*(?P<id>[\da-z-]+)(?:[/#?]|$)'
_TESTS = [{
_VALID_URL = r'https?://(?:www\.)?dr\.dk/(?:tv/se|nyheder)/(?:[^/]+/)*(?P<id>[\da-z-]+)(?:[/#?]|$)'
_TESTS = [{
- 'url': 'https://www.dr.dk/tv/se/boern/ultra/
panisk-paske/panisk-paske-5
',
- 'md5': '
dc515a9ab50577fa14cc4e4b0265168f
',
+ 'url': 'https://www.dr.dk/tv/se/boern/ultra/
klassen-ultra/klassen-darlig-taber-10
',
+ 'md5': '
25e659cccc9a2ed956110a299fdf5983
',
'info_dict': {
'info_dict': {
- 'id': '
panisk-paske-5
',
+ 'id': '
klassen-darlig-taber-10
',
'ext': 'mp4',
'ext': 'mp4',
- 'title': 'Panisk Påske (5)',
- 'description': 'md5:ca14173c5ab24cd26b0fcc074dff391c',
- 'timestamp': 1426984612,
- 'upload_date': '20150322',
- 'duration': 1455,
+ 'title': 'Klassen - Dårlig taber (10)',
+ 'description': 'md5:815fe1b7fa656ed80580f31e8b3c79aa',
+ 'timestamp': 1471991907,
+ 'upload_date': '20160823',
+ 'duration': 606.84,
+ },
+ 'params': {
+ 'skip_download': True,
},
},
- 'skip': 'Video is no longer available',
}, {
'url': 'https://www.dr.dk/nyheder/indland/live-christianias-rydning-af-pusher-street-er-i-gang',
}, {
'url': 'https://www.dr.dk/nyheder/indland/live-christianias-rydning-af-pusher-street-er-i-gang',
- 'md5': '2
ada5074f9e79afc0d324a8e9784d850
',
+ 'md5': '2
c37175c718155930f939ef59952474a
',
'info_dict': {
'id': 'christiania-pusher-street-ryddes-drdkrjpo',
'ext': 'mp4',
'info_dict': {
'id': 'christiania-pusher-street-ryddes-drdkrjpo',
'ext': 'mp4',
@@
-39,7
+41,7
@@
class DRTVIE(InfoExtractor):
'timestamp': 1472800279,
'upload_date': '20160902',
'duration': 131.4,
'timestamp': 1472800279,
'upload_date': '20160902',
'duration': 131.4,
- }
+ }
,
}]
def _real_extract(self, url):
}]
def _real_extract(self, url):