From bfaab7b2fb591b9302ebc891a7fc83cc5f09cb6c Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sun, 27 Jan 2019 23:28:53 +0300 Subject: [PATCH] fix get iptv url --- app/ui/main_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ui/main_helper.py b/app/ui/main_helper.py index 9339b762..101d02f5 100644 --- a/app/ui/main_helper.py +++ b/app/ui/main_helper.py @@ -1,6 +1,8 @@ """ This is helper module for ui """ import os import shutil +import urllib.request + from gi.repository import GdkPixbuf, GLib from app.commons import run_task @@ -573,7 +575,7 @@ def get_iptv_url(row, profile): data = list(filter(lambda x: "http" in x, data)) if data: url = data[0] - return url.replace("%3a", ":") if profile is Profile.ENIGMA_2 else url + return urllib.request.unquote(url) if profile is Profile.ENIGMA_2 else url def on_popup_menu(menu, event):