Skip to content

Commit

Permalink
fixed error when save path contains extra /
Browse files Browse the repository at this point in the history
  • Loading branch information
Laharah committed Jan 20, 2019
1 parent 20707dd commit 66b8436
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,7 +1,7 @@
# FilebotTool: FileBot Integration for Deluge
*requires [Filebot](http://www.filebot.net/)*

**Version 1.2.1**
**Version 1.2.2**

##### [Download Latest Release](https://github.com/Laharah/deluge-FilebotTool/releases/latest)

Expand Down
3 changes: 3 additions & 0 deletions filebottool/core.py
Expand Up @@ -384,6 +384,9 @@ def _get_filebot_target(self, torrent_id):
def _get_full_os_path(save_path, deluge_path):
"""given a save path and a deluge file path, return the actual os
path of a given file"""
sp = save_path.split(os.path.sep)
if sp[-1] == '':
sp = sp[:-1]
return os.path.sep.join(save_path.split(os.path.sep) +
deluge_path.split('/'))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -42,7 +42,7 @@
__plugin_name__ = "FileBotTool"
__author__ = "laharah"
__author_email__ = "laharah+fbt@gmail.com"
__version__ = "1.2.1"
__version__ = "1.2.2"
__url__ = "https://github.com/Laharah/deluge-FileBotTool"
__license__ = "GPLv3"
__description__ = "Integrates FileBot functionality to Deluge"
Expand Down

0 comments on commit 66b8436

Please sign in to comment.