Browse Source

[cctv] Relax some video id regexes

totalwebcasting
Sergey M․ 8 years ago
parent
commit
7a9e066972
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/cctv.py

+ 2
- 2
youtube_dl/extractor/cctv.py View File

@ -97,8 +97,8 @@ class CCTVIE(InfoExtractor):
video_id = self._search_regex( video_id = self._search_regex(
[r'var\s+guid\s*=\s*["\']([\da-fA-F]+)', [r'var\s+guid\s*=\s*["\']([\da-fA-F]+)',
r'videoCenterId["\']\s*,\s*["\']([\da-fA-F]+)', r'videoCenterId["\']\s*,\s*["\']([\da-fA-F]+)',
r'"changePlayer\s*\(\s*["\']([\da-fA-F]+)',
r'"load[Vv]ideo\s*\(\s*["\']([\da-fA-F]+)'],
r'changePlayer\s*\(\s*["\']([\da-fA-F]+)',
r'load[Vv]ideo\s*\(\s*["\']([\da-fA-F]+)'],
webpage, 'video id') webpage, 'video id')
data = self._download_json( data = self._download_json(


Loading…
Cancel
Save