1
0
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:
Urgau 2018-06-03 14:08:09 +02:00 committed by GitHub
parent 5f2aac8642
commit 4acaa8f4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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