mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-03 00:48:00 +09:00
[ChannelNewsAsia] follow conventions
This commit is contained in:
parent
6ee229b4f1
commit
357a506c20
@ -36,8 +36,7 @@ class ChannelNewsAsiaIE(InfoExtractor):
|
|||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
url_obj = (
|
url_obj = (
|
||||||
re.search(r'<div.*video-asset-id="(?P<id>(?:\d|\w|-)+)".*</div>', webpage, flags=re.DOTALL)
|
re.search(r'<div.*video-asset-id="(?P<id>(?:\d|\w|-)+)".*</div>', webpage, flags=re.DOTALL)
|
||||||
or re.search(r'<div.*data-video-id="(?P<id>(?:\d|\w|-)+)".*</div>', webpage, flags=re.DOTALL)
|
or re.search(r'<div.*data-video-id="(?P<id>(?:\d|\w|-)+)".*</div>', webpage, flags=re.DOTALL))
|
||||||
)
|
|
||||||
|
|
||||||
ooyala_id = url_obj.group('id')
|
ooyala_id = url_obj.group('id')
|
||||||
return self.url_result(
|
return self.url_result(
|
||||||
|
Loading…
Reference in New Issue
Block a user