mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-22 22:47:55 +01:00
Merge remote-tracking branch 'jaimeMF/Steam'
This commit is contained in:
commit
4dc72b830c
@ -3627,18 +3627,22 @@ class SteamIE(InfoExtractor):
|
|||||||
mweb = re.finditer(urlRE, webpage)
|
mweb = re.finditer(urlRE, webpage)
|
||||||
namesRE = r'<span class="title">(?P<videoName>.+?)</span>'
|
namesRE = r'<span class="title">(?P<videoName>.+?)</span>'
|
||||||
titles = re.finditer(namesRE, webpage)
|
titles = re.finditer(namesRE, webpage)
|
||||||
|
thumbsRE = r'<img class="movie_thumb" src="(?P<thumbnail>.+?)">'
|
||||||
|
thumbs = re.finditer(thumbsRE, webpage)
|
||||||
videos = []
|
videos = []
|
||||||
for vid,vtitle in zip(mweb,titles):
|
for vid,vtitle,thumb in zip(mweb,titles,thumbs):
|
||||||
video_id = vid.group('videoID')
|
video_id = vid.group('videoID')
|
||||||
title = vtitle.group('videoName')
|
title = vtitle.group('videoName')
|
||||||
video_url = vid.group('videoURL')
|
video_url = vid.group('videoURL')
|
||||||
|
video_thumb = thumb.group('thumbnail')
|
||||||
if not video_url:
|
if not video_url:
|
||||||
self._downloader.trouble(u'ERROR: Cannot find video url for %s' % video_id)
|
self._downloader.trouble(u'ERROR: Cannot find video url for %s' % video_id)
|
||||||
info = {
|
info = {
|
||||||
'id':video_id,
|
'id':video_id,
|
||||||
'url':video_url,
|
'url':video_url,
|
||||||
'ext': 'flv',
|
'ext': 'flv',
|
||||||
'title': unescapeHTML(title)
|
'title': unescapeHTML(title),
|
||||||
|
'thumbnail': video_thumb
|
||||||
}
|
}
|
||||||
videos.append(info)
|
videos.append(info)
|
||||||
return videos
|
return videos
|
||||||
|
Loading…
Reference in New Issue
Block a user