2014-04-14, 06:59
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:
And the log output that goes with it is:
So in effect the TvTunes addon is calling:
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...pid1681103
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)) )
# check if the directory exists before searching
if xbmcvfs.exists(directory):
dirs, files = xbmcvfs.listdir( directory )
for aFile in files:
m = re.search(Settings.getThemeFileRegEx(directory,extensionOnly), aFile, re.IGNORECASE)
if m:
path = os_path_join( directory, aFile )
log("ThemeFiles: Found match: %s" % path)
# Add the theme file to the list
themeFiles.append(path)
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)$)
22:12:14 T:4705923072 DEBUG: AFP: Using anonymous authentication.
22:12:14 T:4705923072 DEBUG: Previous line repeats 1 times.
22:12:14 T:4705923072 ERROR: GetDirectory - Failed to stat file /Almost Human/Season 1Almost.Human.S01E02.Skin.mkv (Invalid argument)
22:12:14 T:4705923072 ERROR: GetDirectory - Failed to stat file /Almost Human/Season 1Almost.Human.S01E01.Pilot.mkv (Invalid argument)
22:12:14 T:4705923072 ERROR: GetDirectory - Failed to stat file /Almost Human/Season 1Almost.Human.S01E01.Pilot.en.srt (Invalid argument)
...
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...pid1681103