2012-03-29, 19:24
(2012-03-29, 16:42)MakkaD Wrote: Hello
I am using tvtunes but i think i found a bug.
I use a path substitute for addon_data.
In advancedsettings.xml
The first time i launch the plugin (clicking on TVTunes button in the TV series details) it looks to work correctly.Code:<substitute>
<from>special://masterprofile/addon_data/</from>
<to>smb://192.168.50.100/XBMC_Share/addon_data/</to>
</substitute>
The second time i start the plugin, it thouws an error.
I found that the temp directory is created on the local addon_data directory and not in the shared one.
Furthermore, in the log i found the error
Code:16:35:48 T:1840 NOTICE: -->Python Interpreter Initialized<--
16:35:48 T:1840 ERROR: Error Type: <type 'exceptions.WindowsError'>
16:35:48 T:1840 ERROR: Error Contents: (183, 'Impossibile creare un file, se il file esiste gi', 'C:\\Users\\maccarid.GRUPPOZENIT\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\script.tvtunes\\temp')
16:35:48 T:1840 ERROR: Traceback (most recent call last):
File "C:\Users\makka\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py", line 227, in <module>
TvTunes()
File "C:\Users\makka\AppData\Roaming\XBMC\addons\script.tvtunes\resources\tvtunes_scraper.py", line 71, in __init__
os.makedirs( xbmc.translatePath( 'special://profile/addon_data/%s/temp' % __addonid__ ) )
File "C:\Program Files (x86)\XBMC\system\python\Lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: (183, 'Impossibile creare un file, se il file esiste gi', 'C:\\Users\\makka\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\script.tvtunes\\temp')
The error "Impossibile creare un file, se il file esiste gi" means "Impossible to create a file if it already exists".
Is this possible that in some of the check/creation/delete of file the path is not translated to the actual path?
Makka
thanx for the report!
i've tested it and can reproduce the bug.
will fix it in the next release.