diff options
author | Remita Amine <[email protected]> | 2019-05-09 04:13:31 +0100 |
---|---|---|
committer | Remita Amine <[email protected]> | 2019-05-09 04:14:19 +0100 |
commit | a5b92d3590def85aee73d2968875e9a9cc916f26 (patch) | |
tree | 976c48f8930e8f0200a36883931dbf037bf9ca6b | |
parent | b45a9e698e900cf3628963b77e5149e65857fdaf (diff) | |
download | youtube-dl-a5b92d3590def85aee73d2968875e9a9cc916f26.tar.gz youtube-dl-a5b92d3590def85aee73d2968875e9a9cc916f26.zip |
[yahoo:gyao] extend _VALID_URL(closes #21008)
-rw-r--r-- | youtube_dl/extractor/yahoo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py index 86ba7d3c9..6576c1d69 100644 --- a/youtube_dl/extractor/yahoo.py +++ b/youtube_dl/extractor/yahoo.py @@ -526,7 +526,7 @@ class YahooGyaOPlayerIE(InfoExtractor): class YahooGyaOIE(InfoExtractor): IE_NAME = 'yahoo:gyao' - _VALID_URL = r'https?://(?:gyao\.yahoo\.co\.jp/p|streaming\.yahoo\.co\.jp/p/y)/(?P<id>\d+/v\d+)' + _VALID_URL = r'https?://(?:gyao\.yahoo\.co\.jp/(?:p|title/[^/]+)|streaming\.yahoo\.co\.jp/p/y)/(?P<id>\d+/v\d+|[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12})' _TESTS = [{ 'url': 'https://gyao.yahoo.co.jp/p/00449/v03102/', 'info_dict': { @@ -536,6 +536,9 @@ class YahooGyaOIE(InfoExtractor): }, { 'url': 'https://streaming.yahoo.co.jp/p/y/01034/v00133/', 'only_matching': True, + }, { + 'url': 'https://gyao.yahoo.co.jp/title/%E3%81%97%E3%82%83%E3%81%B9%E3%81%8F%E3%82%8A007/5b025a49-b2e5-4dc7-945c-09c6634afacf', + 'only_matching': True, }] def _real_extract(self, url): |