plugins.mangomolo: fix media.gov.kw matcher

This commit is contained in:
bastimeyer 2024-04-07 00:22:11 +02:00 committed by Sebastian Meyer
parent d396db4588
commit ceda08ed25
2 changed files with 9 additions and 1 deletions

View File

@ -24,7 +24,7 @@ log = logging.getLogger(__name__)
)
@pluginmatcher(
name="mediagovkw",
pattern=re.compile(r"https?://media\.gov\.kw/"),
pattern=re.compile(r"https?://(www\.)?media\.gov\.kw/"),
)
class Mangomolo(Plugin):
def _get_player_url(self):

View File

@ -15,8 +15,16 @@ class TestPluginCanHandleUrlMangomolo(PluginCanHandleUrl):
"mediagovkw",
"https://media.gov.kw/LiveTV.aspx?PanChannel=KTV1",
),
(
"mediagovkw",
"https://www.media.gov.kw/LiveTV.aspx?PanChannel=KTV1",
),
(
"mediagovkw",
"https://media.gov.kw/LiveTV.aspx?PanChannel=KTVSports",
),
(
"mediagovkw",
"https://www.media.gov.kw/LiveTV.aspx?PanChannel=KTVSports",
),
]