diff options
author | pukkandan <pukkandan@gmail.com> | 2021-01-21 02:26:24 +0530 |
---|---|---|
committer | pukkandan <pukkandan@gmail.com> | 2021-01-21 02:26:24 +0530 |
commit | e7ff505132af4bd6f78de2295f208745f66fef78 (patch) | |
tree | 09325f3f07e81da1823d9c785f364913d059ff57 | |
parent | fbced7341df3e596ec1017346efecb5e433ba9ee (diff) | |
download | hypervideo-pre-e7ff505132af4bd6f78de2295f208745f66fef78.tar.lz hypervideo-pre-e7ff505132af4bd6f78de2295f208745f66fef78.tar.xz hypervideo-pre-e7ff505132af4bd6f78de2295f208745f66fef78.zip |
[pokemon] Add `/#/player` URLs (Closes #24)
-rw-r--r-- | youtube_dlc/extractor/pokemon.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dlc/extractor/pokemon.py b/youtube_dlc/extractor/pokemon.py index 14ee1a72e..ec8148407 100644 --- a/youtube_dlc/extractor/pokemon.py +++ b/youtube_dlc/extractor/pokemon.py @@ -75,7 +75,7 @@ class PokemonIE(InfoExtractor): class PokemonWatchIE(InfoExtractor): - _VALID_URL = r'https?://watch\.pokemon\.com/[a-z]{2}-[a-z]{2}/player\.html\?id=(?P<id>[a-z0-9]{32})' + _VALID_URL = r'https?://watch\.pokemon\.com/[a-z]{2}-[a-z]{2}/(?:#/)?player(?:\.html)?\?id=(?P<id>[a-z0-9]{32})' _API_URL = 'https://www.pokemon.com/api/pokemontv/v2/channels/{0:}' _TESTS = [{ 'url': 'https://watch.pokemon.com/en-us/player.html?id=8309a40969894a8e8d5bc1311e9c5667', @@ -87,6 +87,9 @@ class PokemonWatchIE(InfoExtractor): 'description': 'md5:338841b8c21b283d24bdc9b568849f04', } }, { + 'url': 'https://watch.pokemon.com/en-us/#/player?id=3fe7752ba09141f0b0f7756d1981c6b2', + 'only_matching': True + }, { 'url': 'https://watch.pokemon.com/de-de/player.html?id=b3c402e111a4459eb47e12160ab0ba07', 'only_matching': True }] |