Skip to content

Commit

Permalink
added additional yt link checking (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
DYefremov committed Apr 6, 2023
1 parent 95a1732 commit 7b002b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui/iptv.py
Expand Up @@ -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)
Expand Down

0 comments on commit 7b002b2

Please sign in to comment.