mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-30 19:45:06 +00:00
[vine] Fix extraction (Closes #9970)
This commit is contained in:
parent
9f4576a7eb
commit
564dc3c6e8
1 changed files with 3 additions and 1 deletions
|
@ -90,9 +90,11 @@ class VineIE(InfoExtractor):
|
||||||
|
|
||||||
data = self._parse_json(
|
data = self._parse_json(
|
||||||
self._search_regex(
|
self._search_regex(
|
||||||
r'window\.POST_DATA\s*=\s*{\s*%s\s*:\s*({.+?})\s*};\s*</script>' % video_id,
|
r'window\.POST_DATA\s*=\s*({.+?});\s*</script>',
|
||||||
webpage, 'vine data'),
|
webpage, 'vine data'),
|
||||||
video_id)
|
video_id)
|
||||||
|
|
||||||
|
data = data[list(data.keys())[0]]
|
||||||
|
|
||||||
formats = [{
|
formats = [{
|
||||||
'format_id': '%(format)s-%(rate)s' % f,
|
'format_id': '%(format)s-%(rate)s' % f,
|
||||||
|
|
Loading…
Reference in a new issue