2010-09-05, 15:26
Hello,
I´m working on my ListenLiveEU addon. Now I have a problem with the append mode.
Everything is ok if I use the write mode, but with append i get this error message:
I also tried 'a+' with the same error.
I´m working with dharma beta1 and Windows 7...
Does anybody have an idea what the problem is?
Greets
I´m working on my ListenLiveEU addon. Now I have a problem with the append mode.
Everything is ok if I use the write mode, but with append i get this error message:
Quote:Traceback (most recent call last):
File "C:\Users\bootsy\AppData\Roaming\XBMC\addons\plugin.audio.ListenLiveEU\default.py", line 70, in addFav
f.write('name=%s&url=%s%s' % (name, url, '\n'))
IOError: (0, 'Error')
Code:
FILE_FAVS = os.path.join('special://home/userdata/addon_data/plugin.audio.ListenLiveEU', 'favorites.xml')
f = open(xbmc.translatePath(FILE_FAVS),"a")
f.write('name=%s&url=%s%s' % (name, url, '\n'))
f.close()
I´m working with dharma beta1 and Windows 7...
Does anybody have an idea what the problem is?
Greets