projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6ce89ae
)
[nextmedia] Add localized name
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 10 Jul 2015 16:51:55 +0000
(
00:51
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 10 Jul 2015 16:51:55 +0000
(
00:51
+0800)
youtube_dl/extractor/nextmedia.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/nextmedia.py
b/youtube_dl/extractor/nextmedia.py
index d1b7cff4cfbf30c76c52ae98ad247e8907be6abd..c10784f6b7321395e69c86ab06f91f8d3b37b655 100644
(file)
--- a/
youtube_dl/extractor/nextmedia.py
+++ b/
youtube_dl/extractor/nextmedia.py
@@
-6,6
+6,7
@@
from ..utils import parse_iso8601
class NextMediaIE(InfoExtractor):
class NextMediaIE(InfoExtractor):
+ IE_DESC = '蘋果日報'
_VALID_URL = r'http://hk.apple.nextmedia.com/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)'
_TESTS = [{
'url': 'http://hk.apple.nextmedia.com/realtime/news/20141108/53109199',
_VALID_URL = r'http://hk.apple.nextmedia.com/[^/]+/[^/]+/(?P<date>\d+)/(?P<id>\d+)'
_TESTS = [{
'url': 'http://hk.apple.nextmedia.com/realtime/news/20141108/53109199',
@@
-66,6
+67,7
@@
class NextMediaIE(InfoExtractor):
class NextMediaActionNewsIE(NextMediaIE):
class NextMediaActionNewsIE(NextMediaIE):
+ IE_DESC = '蘋果日報 - 動新聞'
_VALID_URL = r'http://hk.dv.nextmedia.com/actionnews/[^/]+/(?P<date>\d+)/(?P<id>\d+)/\d+'
_TESTS = [{
'url': 'http://hk.dv.nextmedia.com/actionnews/hit/20150121/19009428/20061460',
_VALID_URL = r'http://hk.dv.nextmedia.com/actionnews/[^/]+/(?P<date>\d+)/(?P<id>\d+)/\d+'
_TESTS = [{
'url': 'http://hk.dv.nextmedia.com/actionnews/hit/20150121/19009428/20061460',
@@
-90,6
+92,7
@@
class NextMediaActionNewsIE(NextMediaIE):
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+)(/.*)?'
_TESTS = [{
'url': 'http://ent.appledaily.com.tw/enews/article/entertainment/20150128/36354694',
_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',