[ie/thechosen] Support URLs with non-numeric IDs (#18109)

Closes #18108
Authored by: jirijakes
This commit is contained in:
Jiří Jakeš
2026-11-22 16:50:43 +00:00
committed by GitHub
parent 38a5fb16d1
commit 79a40f7ba1
+12 -1
View File
@@ -9,7 +9,7 @@ from ..utils.traversal import traverse_obj
class TheChosenIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[0-9]+)'
_VALID_URL = r'https?://(?:www\.)?watch\.thechosen\.tv/(?:video|watch)/(?P<id>[\w-]+)'
_TESTS = [{
'url': 'https://watch.thechosen.tv/video/184683594325',
'md5': '3f878b689588c71b38ec9943c54ff5b0',
@@ -56,6 +56,17 @@ class TheChosenIE(InfoExtractor):
'thumbnail': 'https://cdn.thechosen.media/videos/cmkoltsl8000dfd5z3luid3mg/thumbnail.jpg',
},
'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://watch.thechosen.tv/video/cms2998xu0094272m1s0pev2t',
'info_dict': {
'id': 'cms2998xu0094272m1s0pev2t',
'ext': 'mp4',
'title': 'Aftershow: S1 E1',
'description': 'md5:0ea3749e29bb8be69487d87cd06db672',
'duration': 3085,
'thumbnail': 'https://cdn.thechosen.media/videos/cms2998xu0094272m1s0pev2t/thumbnail.jpg',
},
'params': {'skip_download': 'm3u8'},
}]
def _real_extract(self, url):