Skip to content

Commit

Permalink
Fix removal of tempdir added in 0.2.11 (34f7813)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiro committed Mar 13, 2018
1 parent 5b42e86 commit 5e24dab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.subtitles.subdivx"
name="Subdivx.com"
version="0.2.13"
version="0.2.14"
provider-name="cramm">
<requires>
<import addon="xbmc.python" version="2.14.0"/>
Expand Down
16 changes: 8 additions & 8 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
__author__ = __addon__.getAddonInfo('author')
__scriptid__ = __addon__.getAddonInfo('id')
__scriptname__ = __addon__.getAddonInfo('name')
__version__ = '0.2.13'
__version__ = '0.2.14'
__language__ = __addon__.getLocalizedString

__cwd__ = xbmc.translatePath(__addon__.getAddonInfo('path')).decode("utf-8")
Expand Down Expand Up @@ -554,6 +554,8 @@ def main():
item['file_original_path'] = stackPath[0][8:]

Search(item)
# Send end of directory to XBMC
xbmcplugin.endOfDirectory(int(sys.argv[1]))

elif action == 'download':
debug_dump_path(xbmc.translatePath(__addon__.getAddonInfo('profile')),
Expand All @@ -579,15 +581,13 @@ def main():
listitem = xbmcgui.ListItem(label=sub['path'])
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=sub['path'],
listitem=listitem, isFolder=False)
# Send end of directory to XBMC
xbmcplugin.endOfDirectory(int(sys.argv[1]))

# Send end of directory to XBMC
xbmcplugin.endOfDirectory(int(sys.argv[1]))

if (action == 'download' and
__addon__.getSetting('show_nick_in_place_of_lang') == 'true'):
time.sleep(3)
_cleanup_tempdir(workdir)
_double_dot_fix_hack(params['filename'].encode('utf-8'))
if __addon__.getSetting('show_nick_in_place_of_lang') == 'true':
time.sleep(2)
_double_dot_fix_hack(params['filename'].encode('utf-8'))


if __name__ == '__main__':
Expand Down

0 comments on commit 5e24dab

Please sign in to comment.