From b66a8c363e8e8e6d49c73b4f03da37cc3d9f41eb Mon Sep 17 00:00:00 2001 From: mrx23dot Date: Sat, 2 May 2020 15:31:49 +0100 Subject: [PATCH] [mediaklikk] coding convention fix --- youtube_dl/extractor/mediaklikk.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/youtube_dl/extractor/mediaklikk.py b/youtube_dl/extractor/mediaklikk.py index ad52affbd..226a950e5 100644 --- a/youtube_dl/extractor/mediaklikk.py +++ b/youtube_dl/extractor/mediaklikk.py @@ -5,6 +5,7 @@ from .common import InfoExtractor from ..compat import compat_urllib_parse_unquote import re + class MediaKlikkIE(InfoExtractor): # Named regular expression group: (?P...) used for referencing match as 'id' _VALID_URL = r'https?://(?:www\.)?mediaklikk\.hu/video/(?P[^/]+)/?' @@ -12,22 +13,22 @@ class MediaKlikkIE(InfoExtractor): _TEST = { 'url': 'https://mediaklikk.hu/video/kiberma-2020-04-30-i-adas/', 'info_dict': { - 'id': 'kiberma-2020-04-30-i-adas', - 'ext': 'mp4', - 'title': 'KiberMa, 2020.04.30-i adás | MédiaKlikk', - # no thumbnail extractable + 'id': 'kiberma-2020-04-30-i-adas', + 'ext': 'mp4', + 'title': 'KiberMa, 2020.04.30-i adás | MédiaKlikk', + # no thumbnail extractable } } def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) video_id = mobj.group('id') - display_id = video_id # we only have one id in url.. + display_id = video_id # we only have one id in url.. webpage = self._download_webpage(url, video_id) pattern = r"mtva_player_manager\.player\(document.getElementById\(.*\),\s?(\{.*\}).*\);" info_json = self._html_search_regex(pattern, webpage, 'info_json') - info_meta = self._parse_json(compat_urllib_parse_unquote(info_json),None) + info_meta = self._parse_json(compat_urllib_parse_unquote(info_json), None) info_ret = { '_type': 'video',