From ab009f59ef4a4e2a4842d37212b2e57466d9f22e Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 22 Nov 2013 17:17:55 +0100 Subject: [PATCH] [toutv] Fix a typo --- youtube_dl/extractor/soundcloud.py | 2 +- youtube_dl/extractor/toutv.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py index 5544325b5..67b2dff9c 100644 --- a/youtube_dl/extractor/soundcloud.py +++ b/youtube_dl/extractor/soundcloud.py @@ -113,7 +113,7 @@ def _extract_info_dict(self, info, full_title=None, quiet=False): else: # We fallback to the stream_url in the original info, this # cannot be always used, sometimes it can give an HTTP 404 error - resut['url'] = info['stream_url'] + '?client_id=' + self._CLIENT_ID, + result['url'] = info['stream_url'] + '?client_id=' + self._CLIENT_ID, return result diff --git a/youtube_dl/extractor/toutv.py b/youtube_dl/extractor/toutv.py index 732083617..2f728d3dc 100644 --- a/youtube_dl/extractor/toutv.py +++ b/youtube_dl/extractor/toutv.py @@ -39,7 +39,6 @@ def _real_extract(self, url): mediaId = self._search_regex( r'"idMedia":\s*"([^"]+)"', webpage, u'media ID') - # TODO test from de streams_url = u'http://release.theplatform.com/content.select?pid=' + mediaId streams_webpage = self._download_webpage( streams_url, video_id, note=u'Downloading stream list')