[nextmedia] Add localized name

This commit is contained in:
Yen Chi Hsuan 2015-07-11 00:51:55 +08:00
parent 6ce89aecc3
commit 9d16788ad9

View file

@ -6,6 +6,7 @@
class NextMediaIE(InfoExtractor): class NextMediaIE(InfoExtractor):
IE_DESC = '蘋果日報'
_VALID_URL = r'http://hk.apple.nextmedia.com/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)' _VALID_URL = r'http://hk.apple.nextmedia.com/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)'
_TESTS = [{ _TESTS = [{
'url': 'http://hk.apple.nextmedia.com/realtime/news/20141108/53109199', 'url': 'http://hk.apple.nextmedia.com/realtime/news/20141108/53109199',
@ -66,6 +67,7 @@ def _fetch_description(self, page):
class NextMediaActionNewsIE(NextMediaIE): class NextMediaActionNewsIE(NextMediaIE):
IE_DESC = '蘋果日報 - 動新聞'
_VALID_URL = r'http://hk.dv.nextmedia.com/actionnews/[^/]+/(?P<date>\d+)/(?P<id>\d+)/\d+' _VALID_URL = r'http://hk.dv.nextmedia.com/actionnews/[^/]+/(?P<date>\d+)/(?P<id>\d+)/\d+'
_TESTS = [{ _TESTS = [{
'url': 'http://hk.dv.nextmedia.com/actionnews/hit/20150121/19009428/20061460', 'url': 'http://hk.dv.nextmedia.com/actionnews/hit/20150121/19009428/20061460',
@ -90,6 +92,7 @@ def _real_extract(self, url):
class AppleDailyIE(NextMediaIE): class AppleDailyIE(NextMediaIE):
IE_DESC = '臺灣蘋果日報'
_VALID_URL = r'http://(www|ent).appledaily.com.tw/(?:animation|appledaily|enews|realtimenews)/[^/]+/[^/]+/(?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 = [{ _TESTS = [{
'url': 'http://ent.appledaily.com.tw/enews/article/entertainment/20150128/36354694', 'url': 'http://ent.appledaily.com.tw/enews/article/entertainment/20150128/36354694',