From 7b002b208f07f1d6ab1003bd8a3871b9eae03bf0 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Thu, 6 Apr 2023 14:55:30 +0300 Subject: [PATCH] added additional yt link checking (#170) --- app/ui/iptv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/iptv.py b/app/ui/iptv.py index d02f442f..2b6135df 100644 --- a/app/ui/iptv.py +++ b/app/ui/iptv.py @@ -219,7 +219,7 @@ def init_enigma2_data(self, fav_id): # URL. url = unquote(data[10].strip()) sch = urlparse(url).scheme.upper() - if sch in _URL_PREFIXES: + if YouTube.get_yt_id(url) and sch in _URL_PREFIXES: active_prefix = _URL_PREFIXES.get(sch) url = re.sub(active_prefix, "", url, 1, re.IGNORECASE) self._url_prefix_combobox.set_active_id(active_prefix)