1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-10 15:28:33 +00:00

Fix ruff checks

This commit is contained in:
Patrick Robertson 2025-02-04 14:20:24 +01:00
parent 2d02bdceee
commit d047f06673

View File

@ -477,7 +477,7 @@ def _perform_login(self, username, password):
except network_exceptions as err:
self.report_warning(f'unable to log in: {err}')
return
def _extract_metadata(self, webpage, video_id):
post_data = [self._parse_json(j, video_id, fatal=False) for j in re.findall(
r'data-sjs>({.*?ScheduledServerJS.*?})</script>', webpage)]