File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22$description Live TV channels from MTVA, a Hungarian public, state-owned broadcaster.
33$url mediaklikk.hu
44$url m4sport.hu
5+ $url hirado.hu
56$type live
67$region Hungary
78"""
2021
2122
2223@pluginmatcher (
23- re .compile (r"https?://(?:www\.)?(?:mediaklikk|m4sport|hirado|petofilive )\.hu/" ),
24+ re .compile (r"https?://(?:www\.)?(?:mediaklikk|m4sport|hirado)\.hu/" ),
2425)
2526class Mediaklikk (Plugin ):
2627 PLAYER_URL = "https://player.mediaklikk.hu/playernew/player.php"
@@ -31,10 +32,10 @@ def _get_streams(self):
3132 schema = validate .Schema (
3233 re .compile (
3334 r"""
34- mtva_player_manager\.player \s*\(\s*
35- document\.getElementById\(\s*"\w+"\s*\ )\s*,\s*
35+ loadPlayer \s*\(\s*
36+ (?P<q>['"]).+?(?P=q )\s*,\s*
3637 (?P<json>{.*?})\s*
37- \)\s*;
38+ \)
3839 """ ,
3940 re .VERBOSE | re .DOTALL ,
4041 ),
@@ -51,7 +52,7 @@ def _get_streams(self):
5152 ),
5253 )
5354 if not params :
54- log .error ("Could not find player manager data" )
55+ log .error ("Could not find player data" )
5556 return
5657
5758 params .update ({
Original file line number Diff line number Diff line change @@ -7,15 +7,13 @@ class TestPluginCanHandleUrlMediaklikk(PluginCanHandleUrl):
77
88 should_match = [
99 "https://www.mediaklikk.hu/duna-world-elo/" ,
10- "https://www.mediaklikk.hu/duna-world-radio-elo" ,
1110 "https://www.mediaklikk.hu/m1-elo" ,
1211 "https://www.mediaklikk.hu/m2-elo" ,
13- "https://mediaklikk.hu/video/hirado-2021-06-24-i-adas-6/" ,
1412 "https://m4sport.hu/elo/" ,
1513 "https://m4sport.hu/elo/?channelId=m4sport+" ,
1614 "https://m4sport.hu/elo/?showchannel=mtv4plus" ,
17- "https://m4sport.hu/euro2020- video/goool2-13-resz " ,
18- "https://hirado.hu/videok/ " ,
19- "https://hirado.hu/videok/nemzeti-sporthirado-2021-06-24-i-adas-2/ " ,
20- "https://petofilive .hu/video/2021/06/23/the-anahit-klip-limited-edition/ " ,
15+ "https://m4sport.hu/video/2025/08/08/fizz-liga-kolorcity-kazincbarcika-sc-dvsc-merkozes " ,
16+ "https://hirado.hu/elo/m1 " ,
17+ "https://hirado.hu/elo/m2 " ,
18+ "https://hirado .hu/belfold/ video/2025/08/09/szuletesnap-a-budapesti-allat-es-novenykertben " ,
2119 ]
You can’t perform that action at this time.
0 commit comments