Bug afp:// and xbmcvfs.listdir not working together - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Bug afp:// and xbmcvfs.listdir not working together (/showthread.php?tid=192255) |
afp:// and xbmcvfs.listdir not working together - robwebset - 2014-04-14 Hi All, I think that a user of TvTunes has found a problem that may exist with the xbmcvfs.listdir() python interface and the afp file reference format. The piece of code that is being run is: Code: log( "ThemeFiles: Searching %s for %s" % (directory, Settings.getThemeFileRegEx(directory,extensionOnly)) ) And the log output that goes with it is: Code: 22:12:14 T:4705923072 DEBUG: script.tvtunes: ThemeFiles: Searching afp://Diskstation.local/TV Shows/Almost Human/Season 1 for (theme[ _A-Za-z0-9.-]*.(mp3|wma|flac|m4a|wav)$) So in effect the TvTunes addon is calling: Code: xbmcvfs.listdir( "afp://Diskstation.local/TV Shows/Almost Human/Season 1" ) and it looks like it is incorrectly trying to append a file to the directory path without a directory separator - causing an error within itself? Unfortunately I do not has an environment that supports afp in order to do any further testing with this. (This seems to work with the other protocols - smb, NFS etc) Rob Users original post: http://forum.xbmc.org/showthread.php?tid=173799&pid=1681103#pid1681103 |