projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
12355ac
)
[groupon] Fix extraction
author
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 12 Apr 2016 09:26:09 +0000
(17:26 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Tue, 12 Apr 2016 09:26:09 +0000
(17:26 +0800)
youtube_dl/extractor/groupon.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/groupon.py
b/youtube_dl/extractor/groupon.py
index 63c05b6a6f96dfa4437f15cd77524ab3d89e1018..f6b69662baf547aa48a9bdf460671f072bd59884 100644
(file)
--- a/
youtube_dl/extractor/groupon.py
+++ b/
youtube_dl/extractor/groupon.py
@@
-16,14
+16,14
@@
class GrouponIE(InfoExtractor):
'playlist': [{
'info_dict': {
'id': 'tubGNycTo_9Uxg82uESj4i61EYX8nyuf',
'playlist': [{
'info_dict': {
'id': 'tubGNycTo_9Uxg82uESj4i61EYX8nyuf',
- 'ext': '
mp4
',
+ 'ext': '
flv
',
'title': 'Bikram Yoga Huntington Beach | Orange County',
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
'duration': 44.961,
},
}],
'params': {
'title': 'Bikram Yoga Huntington Beach | Orange County',
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
'duration': 44.961,
},
}],
'params': {
- 'skip_download': 'H
L
S',
+ 'skip_download': 'H
D
S',
}
}
}
}
@@
-32,7
+32,7
@@
class GrouponIE(InfoExtractor):
webpage = self._download_webpage(url, playlist_id)
payload = self._parse_json(self._search_regex(
webpage = self._download_webpage(url, playlist_id)
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', [])
entries = []
for v in videos:
videos = payload['carousel'].get('dealVideos', [])
entries = []
for v in videos: