Browse Source

[vine] Use _search_regex for JSON data (Closes #7254, closes #7255)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
cc449417c4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/vine.py

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

@ -85,8 +85,8 @@ class VineIE(InfoExtractor):
webpage = self._download_webpage('https://vine.co/v/' + video_id, video_id) webpage = self._download_webpage('https://vine.co/v/' + video_id, video_id)
data = self._parse_json( 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'), webpage, 'vine data'),
video_id) video_id)


Loading…
Cancel
Save