1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

Fix autopep8 changes

This commit is contained in:
Patrick Robertson 2025-02-04 14:24:40 +01:00
parent d047f06673
commit 01c8529ab1

View file

@ -536,7 +536,7 @@ def _extract_metadata(self, webpage, video_id):
info_json_ld = self._search_json_ld(webpage, video_id, default={}) info_json_ld = self._search_json_ld(webpage, video_id, default={})
info_json_ld['title'] = (re.sub(r'\s*\|\s*Facebook$', '', title or info_json_ld.get('title') or page_title or '') info_json_ld['title'] = (re.sub(r'\s*\|\s*Facebook$', '', title or info_json_ld.get('title') or page_title or '')
or (description or '').replace('\n', ' ') or f'Facebook video #{video_id}') or (description or '').replace('\n', ' ') or f'Facebook video #{video_id}')
return merge_dicts(info_json_ld, info_dict) return merge_dicts(info_json_ld, info_dict)
def _extract_from_url(self, url, video_id): def _extract_from_url(self, url, video_id):