projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7308b8c
)
[vine] Use _search_regex for JSON data (Closes #7254, closes #7255)
author
Sergey M․
<dstftw@gmail.com>
Wed, 21 Oct 2015 14:35:22 +0000
(20:35 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 21 Oct 2015 14:35:22 +0000
(20:35 +0600)
youtube_dl/extractor/vine.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vine.py
b/youtube_dl/extractor/vine.py
index be72f3147d5be525c25fe53063df43b337510ae4..cb2a4b0b54527b635e5255be38d98d3993e026c8 100644
(file)
--- a/
youtube_dl/extractor/vine.py
+++ b/
youtube_dl/extractor/vine.py
@@
-85,8
+85,8
@@
class VineIE(InfoExtractor):
webpage = self._download_webpage('https://vine.co/v/' + video_id, video_id)
data = self._parse_json(
- self._
html_
search_regex(
- r'window\.POST_DATA
= { %s: ({.+?})
};\s*</script>' % video_id,
+ self._search_regex(
+ r'window\.POST_DATA
\s*=\s*{\s*%s\s*:\s*({.+?})\s*
};\s*</script>' % video_id,
webpage, 'vine data'),
video_id)