projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2021b65
)
[cctv] Relax some video id regexes
author
Sergey M․
<dstftw@gmail.com>
Mon, 2 Jan 2017 18:12:41 +0000
(
01:12
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 2 Jan 2017 18:13:02 +0000
(
01:13
+0700)
youtube_dl/extractor/cctv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cctv.py
b/youtube_dl/extractor/cctv.py
index d271cabad0c2e4cf99d7df30b0fad3c278fe754d..ba69c44b89962876ed4d46acf16aeffd8cc25a48 100644
(file)
--- a/
youtube_dl/extractor/cctv.py
+++ b/
youtube_dl/extractor/cctv.py
@@
-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(