I’m far from an expert when it comes to json and python files just curious if anyone knows of an easy way to create a python or json file to open a specific file on the same computer that my kodi is installed on i tried the following code but it doesnt play the file, not sure if im missing something or not.
import xbmc
# variable to contain the file location
file = ‘C:\Users\Media Center\Downloads\PawPatrol\pawpat1x2.mp4’
# tell xbmc to play our file we specified in the above variable
xbmc.Player().play(file)
I also tried it without the import xbmc up at the top. I have no other xbmc python files running or working on matching so not sure if i should have downloaded something else or not to get all this to work properly.
Thanks in advance.