]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
steamIE follow @phihag suggestions
authorJaime Marquínez Ferrándiz <jaimemf93@gmail.com>
Thu, 3 Jan 2013 22:51:48 +0000 (23:51 +0100)
committerJaime Marquínez Ferrándiz <jaimemf93@gmail.com>
Thu, 3 Jan 2013 22:51:48 +0000 (23:51 +0100)
youtube_dl/InfoExtractors.py

index f72defdf278afd1a3b1c3fa4ed7673cd4f5316c7..44516fbdf8bf5d29bca121cd3a9884daaa83369d 100755 (executable)
@@ -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'<span class="title">(?P<videoName>.+)</span>'
-        titles = list(re.finditer(namesRE, webpage))
+        namesRE = r'<span class="title">(?P<videoName>.+?)</span>'
+        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