1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 07:53:21 +08:00

Remove regex

This commit is contained in:
Urgau 2018-06-12 21:20:22 +02:00 committed by GitHub
parent dbe8b9f5ca
commit 7f6fd812a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,7 +512,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]+)"', player_page, 'video ID')
else:
video_id = mobj.group('id')
display_id = video_id