From 24158ee4719e8fa887b7481d92db0adf83357b24 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Tue, 17 Jan 2017 23:24:32 +0100 Subject: [PATCH] [infoq] Rename to _extract_cookies as it more than one --- youtube_dl/extractor/infoq.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/infoq.py b/youtube_dl/extractor/infoq.py index b15b6f689..5400c638d 100644 --- a/youtube_dl/extractor/infoq.py +++ b/youtube_dl/extractor/infoq.py @@ -56,7 +56,7 @@ class InfoQIE(BokeCCBaseIE): 'play_path': playpath, }] - def _extract_cookie(self, webpage): + def _extract_cookies(self, webpage): policy = self._search_regex(r'InfoQConstants.scp\s*=\s*\'([^\']+)\'', webpage, 'policy') signature = self._search_regex(r'InfoQConstants.scs\s*=\s*\'([^\']+)\'', webpage, 'signature') key_pair_id = self._search_regex(r'InfoQConstants.sck\s*=\s*\'([^\']+)\'', webpage, 'key-pair-id') @@ -70,7 +70,7 @@ class InfoQIE(BokeCCBaseIE): 'url': http_video_url, 'ext': determine_ext(http_video_url), 'http_headers': { - 'Cookie': self._extract_cookie(webpage) + 'Cookie': self._extract_cookies(webpage) }, }] @@ -86,7 +86,7 @@ class InfoQIE(BokeCCBaseIE): 'ext': determine_ext(http_audio_url, ""), 'vcodec': 'none', 'http_headers': { - 'Cookie': self._extract_cookie(webpage) + 'Cookie': self._extract_cookies(webpage) }, }]