[ChannelNewsAsia] follow conventions

This commit is contained in:
fourjr 2020-11-22 00:03:40 +08:00
parent 6ee229b4f1
commit 357a506c20

View File

@ -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(