aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-03 15:16:27 -0800
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-03 15:16:27 -0800
commit8e5f7618704805caf9fac093e604834237a7965c (patch)
treefcf40b2cecc5982f45ac5e404f6967b8665a23a4 /youtube_dl
parentf5ebb61495a2ed3ee5563bedc72889be7198c7f2 (diff)
parent26714799c98f70f46e2f1da427ae8a5008e26521 (diff)
Merge pull request #617 from jaimeMF/steamIE
[steamIE]Allow downloading videos with other characters in their titles
Diffstat (limited to 'youtube_dl')
-rwxr-xr-xyoutube_dl/InfoExtractors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index d040eec82..e380f62a1 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'<span class=\"title\">(?P<videoName>[\w:/\.\?=\+\s-]+)</span>'
- titles = list(re.finditer(namesRE, webpage))
+ namesRE = r'<span class="title">(?P<videoName>.+?)</span>'
+ titles = re.finditer(namesRE, webpage)
videos = []
for vid,vtitle in zip(mweb,titles):
video_id = vid.group('videoID')
@@ -3707,7 +3707,7 @@ class SteamIE(InfoExtractor):
'id':video_id,
'url':video_url,
'ext': 'flv',
- 'title': title
+ 'title': unescapeHTML(title)
}
videos.append(info)
return videos