Skip to content

Commit

Permalink
basic revert change, script no longer works
Browse files Browse the repository at this point in the history
  • Loading branch information
Laharah committed Feb 27, 2019
1 parent 0e9e8c8 commit 299049b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filebottool/pyfilebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
FILEBOT_EXE = 'filebot'

FILEBOT_MODES = [
'rename', 'move', 'check', 'get-missing-subtitles', 'get-subtitles', 'list',
'rename', 'revert', 'move', 'check', 'get-missing-subtitles', 'get-subtitles', 'list',
'mediainfo'
]

Expand Down Expand Up @@ -342,7 +342,7 @@ def revert(targets):
if isinstance(targets, basestring):
targets = [targets]
targets = [os.path.expanduser(os.path.expandvars(target)) for target in targets]
filebot_arguments = _build_script_arguments("fn:revert", targets)
filebot_arguments = _build_arguments(targets, mode='revert')

exit_code, data, error = _execute(filebot_arguments, workaround=False)
if exit_code != 0:
Expand Down

0 comments on commit 299049b

Please sign in to comment.