2017-11-30, 18:15
My Code:
Now i wanna call the txt files local (addon folder) and not from url. I tryed with special://, plugin://, file:// ...
But it's not working.
How can i solve the problem?
python:
def CATEGORIES():
addDir3('The Name','http://........com/file.txt',3,'http://......com/icon.png','','')
def stream():
r = requests.get('http://........com/file.txt')
match = re.compile('name= (.+?) url= "(.+?)" logo= "(.+?)"').findall(r.content)
for name,link, logo in match:
addLink(name,link,logo,'','')
Now i wanna call the txt files local (addon folder) and not from url. I tryed with special://, plugin://, file:// ...
But it's not working.
How can i solve the problem?