projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9bf87ae
)
[nextmedia] Extend and reorder _VALID_URL
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 23 May 2015 18:42:01 +0000
(
02:42
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 23 May 2015 18:42:01 +0000
(
02:42
+0800)
youtube_dl/extractor/nextmedia.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nextmedia.py
b/youtube_dl/extractor/nextmedia.py
index c75ccafc75fee28187c199f30b810284a0174934..d1b7cff4cfbf30c76c52ae98ad247e8907be6abd 100644
(file)
--- a/
youtube_dl/extractor/nextmedia.py
+++ b/
youtube_dl/extractor/nextmedia.py
@@
-90,7
+90,7
@@
class NextMediaActionNewsIE(NextMediaIE):
class AppleDailyIE(NextMediaIE):
class AppleDailyIE(NextMediaIE):
- _VALID_URL = r'http://(www|ent).appledaily.com.tw/(
animation|realtimenews|
enews)/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)(/.*)?'
+ _VALID_URL = r'http://(www|ent).appledaily.com.tw/(
?:animation|appledaily|enews|realtim
enews)/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)(/.*)?'
_TESTS = [{
'url': 'http://ent.appledaily.com.tw/enews/article/entertainment/20150128/36354694',
'md5': 'a843ab23d150977cc55ef94f1e2c1e4d',
_TESTS = [{
'url': 'http://ent.appledaily.com.tw/enews/article/entertainment/20150128/36354694',
'md5': 'a843ab23d150977cc55ef94f1e2c1e4d',
@@
-138,6
+138,9
@@
class AppleDailyIE(NextMediaIE):
'expected_warnings': [
'video thumbnail',
]
'expected_warnings': [
'video thumbnail',
]
+ }, {
+ 'url': 'http://www.appledaily.com.tw/appledaily/article/supplement/20140417/35770334/',
+ 'only_matching': True,
}]
_URL_PATTERN = r'\{url: \'(.+)\'\}'
}]
_URL_PATTERN = r'\{url: \'(.+)\'\}'