mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-24 02:12:57 +08:00
Remove unnecessary [] in regex
This commit is contained in:
parent
5f2aac8642
commit
4acaa8f4b0
@ -467,7 +467,7 @@ class PBSIE(InfoExtractor):
|
||||
url, display_id, note='Downloading player page',
|
||||
errnote='Could not download player page')
|
||||
video_id = self._search_regex(
|
||||
[r'<div\s+id="video_([0-9]+)"', r'"id":[\s]*"([0-9]+)"'], player_page, 'video ID')
|
||||
[r'<div\s+id="video_([0-9]+)"', r'"id":\s*"([0-9]+)"'], player_page, 'video ID')
|
||||
else:
|
||||
video_id = mobj.group('id')
|
||||
display_id = video_id
|
||||
|
Loading…
Reference in New Issue
Block a user