write fix

pull/1/head
DiMartinoXBMC 2015-07-26 23:00:20 +03:00
parent 390dbcd9f3
commit 69834e8204
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.torrenter" name="Torrenter" version="2.3.5" provider-name="vadim.skorba, DiMartino">
<addon id="plugin.video.torrenter" name="Torrenter" version="2.3.6" provider-name="vadim.skorba, DiMartino">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.libtorrent"/>

View File

@ -1877,6 +1877,8 @@ def vista_check():
return platform.release() == "Vista"
def is_writable(path):
if not os.path.exists(path):
xbmcvfs.mkdirs(path)
try:
open(os.path.join(path, 'temp'), 'w')
except: