From 7e5d48ea64dc4d4eb542144726aa1f67b768bfac Mon Sep 17 00:00:00 2001 From: hmlb-no <175345069+hmlb-no@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:51:54 +0200 Subject: [PATCH] Update kommunetv.py Look at https://www.aventia.no/kommunetv/vare-kunder/ They are also in Sweeden. Here is a problem tho. https://stavanger.kommunetv.no/live/841 https://stavanger.kommunetv.no/archive/841 what if there is a live and a archive at the same time? how dose that work? --- youtube_dl/extractor/kommunetv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/kommunetv.py b/youtube_dl/extractor/kommunetv.py index 91d06a74f..077caa4da 100644 --- a/youtube_dl/extractor/kommunetv.py +++ b/youtube_dl/extractor/kommunetv.py @@ -6,7 +6,8 @@ from ..utils import update_url class KommunetvIE(InfoExtractor): - _VALID_URL = r'https://(\w+).kommunetv.no/archive/(?P\w+)' + _VALID_URL = r'https?://\w+\.kommun(?:etv\.no|\.tv)/(?:archive|live)/(?P\w+)' + _TEST = { 'url': 'https://oslo.kommunetv.no/archive/921', 'md5': '5f102be308ee759be1e12b63d5da4bbc',