diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-02-24 00:59:03 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-02-24 00:59:03 +0100 |
commit | 4dc72b830cafa86d17aa3e4e9b778ba798ca4917 (patch) | |
tree | b559d69bafde90ff9fc2c848a1f048ed8e3dca1f | |
parent | ea05129ebd807dc0a724f70a5bf71736e2f8f9bc (diff) | |
parent | 60bd48b175792d55cc91a3ad8c3109e2ed30fcb8 (diff) | |
download | youtube-dl-4dc72b830cafa86d17aa3e4e9b778ba798ca4917.tar.xz |
Merge remote-tracking branch 'jaimeMF/Steam'
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index d3c3ac264..64a6cfbc8 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3627,18 +3627,22 @@ class SteamIE(InfoExtractor): mweb = re.finditer(urlRE, webpage) namesRE = r'<span class="title">(?P<videoName>.+?)</span>' titles = re.finditer(namesRE, webpage) + thumbsRE = r'<img class="movie_thumb" src="(?P<thumbnail>.+?)">' + thumbs = re.finditer(thumbsRE, webpage) videos = [] - for vid,vtitle in zip(mweb,titles): + for vid,vtitle,thumb in zip(mweb,titles,thumbs): video_id = vid.group('videoID') title = vtitle.group('videoName') video_url = vid.group('videoURL') + video_thumb = thumb.group('thumbnail') if not video_url: self._downloader.trouble(u'ERROR: Cannot find video url for %s' % video_id) info = { 'id':video_id, 'url':video_url, 'ext': 'flv', - 'title': unescapeHTML(title) + 'title': unescapeHTML(title), + 'thumbnail': video_thumb } videos.append(info) return videos |