mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 21:22:52 +08:00
- flake8
This commit is contained in:
parent
78333fae62
commit
31c3d1ed37
@ -2629,9 +2629,7 @@ class YoutubeSearchIE(SearchInfoExtractor, YoutubePlaylistIE):
|
|||||||
regex_post = ').+?(?=title)title\s*=\s*"([^"]+)"[^>]+'
|
regex_post = ').+?(?=title)title\s*=\s*"([^"]+)"[^>]+'
|
||||||
for curr_id in video_ids:
|
for curr_id in video_ids:
|
||||||
regex_combined = r'' + regex_pre + curr_id + regex_post
|
regex_combined = r'' + regex_pre + curr_id + regex_post
|
||||||
extracted_title = self._html_search_regex(
|
extracted_title = self._html_search_regex(regex_combined, html_content, 'title')
|
||||||
regex_combined,
|
|
||||||
html_content,'title')
|
|
||||||
video_id_objects.append({
|
video_id_objects.append({
|
||||||
'vid_id': curr_id,
|
'vid_id': curr_id,
|
||||||
'title': extracted_title.encode('utf-8')
|
'title': extracted_title.encode('utf-8')
|
||||||
|
Loading…
Reference in New Issue
Block a user