]> jfr.im git - yt-dlp.git/commitdiff
[pokemon] Add `/#/player` URLs (Closes #24)
authorpukkandan <redacted>
Wed, 20 Jan 2021 20:56:24 +0000 (02:26 +0530)
committerpukkandan <redacted>
Wed, 20 Jan 2021 20:56:24 +0000 (02:26 +0530)
youtube_dlc/extractor/pokemon.py

index 14ee1a72e17b3f6283c15cf3c8be8bece418e68b..ec8148407b9df20f2fab382cb26bf0fe1a858b13 100644 (file)
@@ -75,7 +75,7 @@ def _real_extract(self, url):
 
 
 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',
@@ -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