1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[zoomus] Adjusted url regex, now allowing for arbitrary long ids, dont throw warning if password field not found

This commit is contained in:
Roman Sebastian Karwacik 2020-06-02 13:07:10 +02:00 committed by insaneracist
parent aa13f124a5
commit b11a88fc24

View File

@ -13,7 +13,7 @@
class ZoomUSIE(InfoExtractor): class ZoomUSIE(InfoExtractor):
IE_NAME = 'zoom.us' IE_NAME = 'zoom.us'
_VALID_URL = r'https://(?:.*).?zoom.us/rec(?:ording)?/play/(?P<id>[^?&=]{64})' _VALID_URL = r'https://(?:.*).?zoom.us/rec(?:ording)?/play/(?P<id>[A-Za-z0-9\-_]+)'
_TEST = { _TEST = {
'url': 'https://zoom.us/recording/play/SILVuCL4bFtRwWTtOCFQQxAsBQsJljFtm9e4Z_bvo-A8B-nzUSYZRNuPl3qW5IGK', 'url': 'https://zoom.us/recording/play/SILVuCL4bFtRwWTtOCFQQxAsBQsJljFtm9e4Z_bvo-A8B-nzUSYZRNuPl3qW5IGK',
@ -29,7 +29,7 @@ def _real_extract(self, url):
display_id = self._match_id(url) display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)
password_protected = self._search_regex(r'<form[^>]+?id="(password_form)"', webpage, 'password field', fatal=False) password_protected = self._search_regex(r'<form[^>]+?id="(password_form)"', webpage, 'password field', fatal=False, default=None)
if password_protected is not None: if password_protected is not None:
self._verify_video_password(url, display_id, webpage) self._verify_video_password(url, display_id, webpage)
webpage = self._download_webpage(url, display_id) webpage = self._download_webpage(url, display_id)