1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

[mediaklikk] coding convention fix

This commit is contained in:
mrx23dot 2020-05-02 15:31:49 +01:00
parent 074292541f
commit b66a8c363e

View File

@ -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<name>...) used for referencing match as 'id'
_VALID_URL = r'https?://(?:www\.)?mediaklikk\.hu/video/(?P<id>[^/]+)/?'
@ -27,7 +28,7 @@ class MediaKlikkIE(InfoExtractor):
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',