From: Jaime Marquínez Ferrándiz Date: Thu, 3 Jan 2013 22:51:48 +0000 (+0100) Subject: steamIE follow @phihag suggestions X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5e9d042d8f5dd3296c8a4fd7f538a22874c38324;p=youtube-dl steamIE follow @phihag suggestions --- diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index f72defdf2..44516fbdf 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3694,8 +3694,8 @@ class SteamIE(InfoExtractor): videourl = 'http://store.steampowered.com/video/%s/' % gameID webpage = self._download_webpage(videourl, gameID) mweb = re.finditer(urlRE, webpage) - namesRE = r'(?P.+)' - titles = list(re.finditer(namesRE, webpage)) + namesRE = r'(?P.+?)' + titles = re.finditer(namesRE, webpage) videos = [] unescaper = compat_html_parser.HTMLParser() for vid,vtitle in zip(mweb,titles): @@ -3708,7 +3708,7 @@ class SteamIE(InfoExtractor): 'id':video_id, 'url':video_url, 'ext': 'flv', - 'title': unescaper.unescape(title) + 'title': unescapeHTML(title) } videos.append(info) return videos