mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-26 21:25:52 +01:00
[groupon] Fix extraction
This commit is contained in:
parent
12355ac473
commit
c77a0c01cb
@ -16,14 +16,14 @@ class GrouponIE(InfoExtractor):
|
|||||||
'playlist': [{
|
'playlist': [{
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'tubGNycTo_9Uxg82uESj4i61EYX8nyuf',
|
'id': 'tubGNycTo_9Uxg82uESj4i61EYX8nyuf',
|
||||||
'ext': 'mp4',
|
'ext': 'flv',
|
||||||
'title': 'Bikram Yoga Huntington Beach | Orange County',
|
'title': 'Bikram Yoga Huntington Beach | Orange County',
|
||||||
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
||||||
'duration': 44.961,
|
'duration': 44.961,
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': 'HLS',
|
'skip_download': 'HDS',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ def _real_extract(self, url):
|
|||||||
webpage = self._download_webpage(url, playlist_id)
|
webpage = self._download_webpage(url, playlist_id)
|
||||||
|
|
||||||
payload = self._parse_json(self._search_regex(
|
payload = self._parse_json(self._search_regex(
|
||||||
r'var\s+payload\s*=\s*(.*?);\n', webpage, 'payload'), playlist_id)
|
r'(?:var\s+|window\.)payload\s*=\s*(.*?);\n', webpage, 'payload'), playlist_id)
|
||||||
videos = payload['carousel'].get('dealVideos', [])
|
videos = payload['carousel'].get('dealVideos', [])
|
||||||
entries = []
|
entries = []
|
||||||
for v in videos:
|
for v in videos:
|
||||||
|
Loading…
Reference in New Issue
Block a user