2020-06-05, 19:16
(2020-06-01, 00:26)robertus Wrote: Hi,here is py code for the function from my addon.
you know an addon to create .strm files ?
strmPath = ('special://profile/addon_data/plugin.video.addon-name/strm_dir/')
if not xbmcvfs.exists(strmPath):
xbmcvfs.mkdir(strmPath)
strmPath = xbmc.translatePath(strmPath)
...
...
def makeStrm(name,movieurl):
try:
fileObj = open((strmPath + str(name).replace(':','-').replace('/','-').replace('?','').replace("'","").replace('\\','_').replace('#', ' ').replace('&','and') +'.strm'),'w')
fileObj.write(movieurl)
fileObj.close()
except:
pass
/Shooty