From e7ff505132af4bd6f78de2295f208745f66fef78 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 21 Jan 2021 02:26:24 +0530 Subject: [PATCH] [pokemon] Add `/#/player` URLs (Closes #24) --- youtube_dlc/extractor/pokemon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dlc/extractor/pokemon.py b/youtube_dlc/extractor/pokemon.py index 14ee1a72e1..ec8148407b 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[a-z0-9]{32})' + _VALID_URL = r'https?://watch\.pokemon\.com/[a-z]{2}-[a-z]{2}/(?:#/)?player(?:\.html)?\?id=(?P[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', @@ -86,6 +86,9 @@ class PokemonWatchIE(InfoExtractor): 'title': 'Lillier and the Staff!', '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