2019-11-24, 19:39
Hi experts
I am currently developing a custom addon which connects with my dlna server. I have sing up the dlna server as media source in the kodi interface. If I use the interface explorer I can see the names of the directories in the DLNA server correct. However if I use the function xbmcvfs.listdir(path) where path is the media source upnp and is with the format.. "upnp://...", the directories dont have the correct names, the directories names are in format "%240%" and something like that, which is a format I cannot understand. Moreover, the function xbmcvfs.listdir(path) never distinct between files and directories when I use an upnp url, they are only directories. In the kodi interface they show my dlna server the correct names of the folders and the files.. so I think that the interface use a trnaslation of the url givenn. My question is about this url translation where is it and how to use it. Or maybe is not used the function xbmcvfs.listdir(path) and I have to use another one to connect to a DLNA server from my addon.
Thanks for your time
I am currently developing a custom addon which connects with my dlna server. I have sing up the dlna server as media source in the kodi interface. If I use the interface explorer I can see the names of the directories in the DLNA server correct. However if I use the function xbmcvfs.listdir(path) where path is the media source upnp and is with the format.. "upnp://...", the directories dont have the correct names, the directories names are in format "%240%" and something like that, which is a format I cannot understand. Moreover, the function xbmcvfs.listdir(path) never distinct between files and directories when I use an upnp url, they are only directories. In the kodi interface they show my dlna server the correct names of the folders and the files.. so I think that the interface use a trnaslation of the url givenn. My question is about this url translation where is it and how to use it. Or maybe is not used the function xbmcvfs.listdir(path) and I have to use another one to connect to a DLNA server from my addon.
Thanks for your time