CaTzil / service.subtitles.napisy24pl

Napisy24.pl is Addon for searching and downloading subtitles from KODI
GNU General Public License v2.0
8 stars 9 forks source link

strange behaviour in windows and kodi #8

Closed pogo1975 closed 10 years ago

pogo1975 commented 10 years ago

Hi i noticed strange behaviour of plugin on windows 8 in kodi alpha latest builds.

when i select and download subtitle it downloads ok, but copy wrong subtitle to movie after unzipping from temp folder.

when i manualy delete files in plugin temp folder it works for one movie.

i think it has something to do with it that temp folder is not cleared altought there is piece of code that looks like it should do it...

if you have a time to look at it.

same plugin version works ok on raspberry and ios....

Edit: working well in build from 20140826

pogo1975 commented 10 years ago

In newest raspberry pi builds from september does not work correctly either...

CaTzil commented 10 years ago

I will check it out in few days, I'm out for holidays.

pogo1975 commented 10 years ago

thanks in advance i will wait for proper fix in mean time i've managed to workaround by adding something like that to clear temp dir: xbmcvfs.mkdirs(temp)

for root, dirs, files in os.walk(__temp__):
    for f in files:
        os.unlink(os.path.join(root, f))
    for d in dirs:
        shutil.rmtree(os.path.join(root, d))
CaTzil commented 10 years ago

Does your solution works?

pogo1975 commented 10 years ago

yeah, it works, i will check in this weekend something else, apparentely there was a bug in kodi that not all addon dependecies was on the path, i will check on fresh install

CaTzil commented 10 years ago

OK, thank you

pogo1975 commented 10 years ago

Hi Unfortunately unmodified plugin does not work in newest kodi version too. I do not have better knowledge of python to debug why it is not working...

CaTzil commented 10 years ago

bdbc094283f34b2ecbd039d16c43c73c896f5360 Fixes the issue above :]