diff --git a/youtube_dl/extractor/steam.py b/youtube_dl/extractor/steam.py index 1a831ef6d..10d540f48 100644 --- a/youtube_dl/extractor/steam.py +++ b/youtube_dl/extractor/steam.py @@ -23,42 +23,30 @@ class SteamIE(InfoExtractor): _AGECHECK_TEMPLATE = 'http://store.steampowered.com/agecheck/video/%s/?snr=1_agecheck_agecheck__age-gate&ageDay=1&ageMonth=January&ageYear=1970' _TESTS = [{ 'url': 'http://store.steampowered.com/video/105600/', - 'playlist': [ - { - 'md5': 'f870007cee7065d7c76b88f0a45ecc07', - 'info_dict': { - 'id': '81300', + 'md5': '644c51b580f57db647da083be97c68c8', + 'info_dict': { + 'id': '2040428', 'ext': 'flv', - 'title': 'Terraria 1.1 Trailer', + 'title': 'Terraria+1.3+Trailer', 'playlist_index': 1, - } - }, - { - 'md5': '61aaf31a5c5c3041afb58fb83cbb5751', - 'info_dict': { - 'id': '80859', - 'ext': 'flv', - 'title': 'Terraria Trailer', - 'playlist_index': 2, - } - } - ], + }, 'params': { - 'playlistend': 2, + 'playlistend': 1, } }, { 'url': 'http://steamcommunity.com/sharedfiles/filedetails/?id=242472205', 'info_dict': { - 'id': 'WB5DvDOOvAY', + 'id': 'X8kpJBlzD2E', 'ext': 'mp4', - 'upload_date': '20140329', - 'title': 'FRONTIERS - Final Greenlight Trailer', - 'description': 'md5:dc96a773669d0ca1b36c13c1f30250d9', + 'upload_date': '20140617', + 'title': 'FRONTIERS - Trapping', + 'description': 'md5:bf6f7f773def614054089e5769c12a6e', 'uploader': 'AAD Productions', 'uploader_id': 'AtomicAgeDogGames', } }] + def _real_extract(self, url): m = re.match(self._VALID_URL, url) fileID = m.group('fileID') @@ -77,6 +65,7 @@ class SteamIE(InfoExtractor): webpage = self._download_webpage(videourl, playlist_id) if fileID: + playlist_title = self._html_search_regex( r'