]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[cctv] Relax some video id regexes
authorSergey M․ <dstftw@gmail.com>
Mon, 2 Jan 2017 18:12:41 +0000 (01:12 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 2 Jan 2017 18:13:02 +0000 (01:13 +0700)
youtube_dl/extractor/cctv.py

index d271cabad0c2e4cf99d7df30b0fad3c278fe754d..ba69c44b89962876ed4d46acf16aeffd8cc25a48 100644 (file)
@@ -97,8 +97,8 @@ class CCTVIE(InfoExtractor):
         video_id = self._search_regex(
             [r'var\s+guid\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')
 
         data = self._download_json(