aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-21 20:35:22 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-21 20:35:22 +0600
commitcc449417c4b3835c31f89e47a5e08e0f0c42ac5a (patch)
tree9c2b305c6e7e79b5966c0e2cd1b7e8d69ff9d9ca
parent7308b8cb3df5a2df0a86e8050c83b951004a0aca (diff)
[vine] Use _search_regex for JSON data (Closes #7254, closes #7255)
-rw-r--r--youtube_dl/extractor/vine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vine.py b/youtube_dl/extractor/vine.py
index be72f3147..cb2a4b0b5 100644
--- 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)