1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 08:34:32 +01:00

[mediaklikk] updated test site URL, added subsite support (hirado)

This commit is contained in:
mrx23dot 2020-09-21 20:36:33 +01:00
parent f15317c8d1
commit ad43251136

View File

@ -8,10 +8,10 @@ import re
class MediaKlikkIE(InfoExtractor): class MediaKlikkIE(InfoExtractor):
# Named regular expression group: (?P<name>...) used for referencing match as 'id' # Named regular expression group: (?P<name>...) used for referencing match as 'id'
_VALID_URL = r'https?://(?:www\.)?(?:mediaklikk|m4sport)\.hu/videok?/(?P<id>[^/]+)/?' _VALID_URL = r'https?:\/\/(?:www\.)?(?:mediaklikk|m4sport|hirado)\.hu\/.*?videok?\/(?P<id>[^\/]+)\/?'
_TEST = { _TEST = {
'url': 'https://mediaklikk.hu/video/kiberma-2020-04-30-i-adas/', 'url': 'https://mediaklikk.hu/adal2020/video/2020/03/07/a-dal-donto/',
'info_dict': { 'info_dict': {
'id': 'kiberma-2020-04-30-i-adas', 'id': 'kiberma-2020-04-30-i-adas',
'ext': 'mp4', 'ext': 'mp4',