From 0841071d67b44eef54faca14bbeaad8f5e5f84d8 Mon Sep 17 00:00:00 2001 From: Pablo Castorino Date: Thu, 31 Jan 2019 14:46:21 -0300 Subject: [PATCH] custom notes for API --- youtube_dl/extractor/contar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/contar.py b/youtube_dl/extractor/contar.py index d3061a537..7619e122c 100644 --- a/youtube_dl/extractor/contar.py +++ b/youtube_dl/extractor/contar.py @@ -22,12 +22,12 @@ class ContarBaseIE(InfoExtractor): raise ExtractorError( '%s said: %s' % (self.IE_NAME, error), expected=True) - def _call_api(self, path, video_id, headers = {}): + def _call_api(self, path, video_id, headers = {}, note='Downloading JSON metadata'): if self._auth_token: headers['Authorization'] = 'Bearer ' + self._auth_token result = self._download_json( - self._API_BASE + path, video_id, headers=headers) + self._API_BASE + path, video_id, headers=headers, note=note) self._handle_errors(result) return result['data']