[extractor/jwplatform] Look for data-video-jw-id

Closes #3821
This commit is contained in:
pukkandan
2022-06-12 03:25:55 +05:30
parent 64fa820ccf
commit 55baa67c7c
2 changed files with 24 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ class JWPlatformIE(InfoExtractor):
webpage)
if ret:
return ret
mobj = re.search(r'<div\b[^>]* data-video-jw-id="([a-zA-Z0-9]{8})"', webpage)
if mobj:
return [f'jwplatform:{mobj.group(1)}']
def _real_extract(self, url):
url, smuggled_data = unsmuggle_url(url, {})