]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[nextmedia] Support action news (動新聞) on Apple Daily
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 9 Oct 2016 10:42:15 +0000 (18:42 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 9 Oct 2016 10:42:15 +0000 (18:42 +0800)
ChangeLog
youtube_dl/extractor/nextmedia.py

index 3d3473a4b857b50ef31daa0f49d67e8eaa612e7c..f74c6b5a4a3315412ab8663025b4c19475c53a11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@ version <unreleased>
 Core
 * [Makefile] Support for GNU make < 4 is fixed; BSD make dropped (#9387)
 
+Extractors
++ [nextmedia] Recognize action news on AppleDaily
+
 
 version 2016.10.07
 
index a08e48c4ba80d79bc011fb28fadbe2fdd7d89adc..dee9056d39e9bb0076d390054006c6dd4246afae 100644 (file)
@@ -93,7 +93,7 @@ class NextMediaActionNewsIE(NextMediaIE):
 
 class AppleDailyIE(NextMediaIE):
     IE_DESC = '臺灣蘋果日報'
-    _VALID_URL = r'https?://(www|ent)\.appledaily\.com\.tw/(?:animation|appledaily|enews|realtimenews)/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)(/.*)?'
+    _VALID_URL = r'https?://(www|ent)\.appledaily\.com\.tw/(?:animation|appledaily|enews|realtimenews|actionnews)/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)(/.*)?'
     _TESTS = [{
         'url': 'http://ent.appledaily.com.tw/enews/article/entertainment/20150128/36354694',
         'md5': 'a843ab23d150977cc55ef94f1e2c1e4d',
@@ -154,6 +154,9 @@ class AppleDailyIE(NextMediaIE):
             'description': 'md5:7b859991a6a4fedbdf3dd3b66545c748',
             'upload_date': '20140417',
         },
+    }, {
+        'url': 'http://www.appledaily.com.tw/actionnews/appledaily/7/20161003/960588/',
+        'only_matching': True,
     }]
 
     _URL_PATTERN = r'\{url: \'(.+)\'\}'