aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-24 02:42:01 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-24 02:42:01 +0800
commit30455ce2554d00489901a398d457fac89456fe49 (patch)
treed99107c4249013c18fa7b9ce2bb18b2506f1c1f4 /youtube_dl
parent9bf87ae3aaac81df3efb92fd0a3247ccb522de2a (diff)
[nextmedia] Extend and reorder _VALID_URL
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/nextmedia.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nextmedia.py b/youtube_dl/extractor/nextmedia.py
index c75ccafc7..d1b7cff4c 100644
--- a/youtube_dl/extractor/nextmedia.py
+++ b/youtube_dl/extractor/nextmedia.py
@@ -90,7 +90,7 @@ class NextMediaActionNewsIE(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|realtimenews)/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)(/.*)?'
_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',
]
+ }, {
+ 'url': 'http://www.appledaily.com.tw/appledaily/article/supplement/20140417/35770334/',
+ 'only_matching': True,
}]
_URL_PATTERN = r'\{url: \'(.+)\'\}'