Fix RaiPlay per Kodi 19

This commit is contained in:
Alhaziel
2020-02-29 18:29:14 +01:00
parent 0a73bb4ea3
commit 80d4cacb06
2 changed files with 13 additions and 10 deletions
+7 -4
View File
@@ -813,12 +813,15 @@ def match(item_url_string, **args):
# check type of item_url_string
if string:
data = item_url_string
elif type(item_url_string) == str:
if item_url_string.startswith('http'): url = item_url_string
else : data = item_url_string
else:
elif isinstance(item_url_string, Item):
# if item_url_string is an item use item.url as url
url = item_url_string.url
else:
if item_url_string.startswith('http'): url = item_url_string
else : data = item_url_string
# else:
# # if item_url_string is an item use item.url as url
# url = item_url_string.url
# if there is a url, download the page
if url: