Filebot rename cli reacts badly when file already exists
Posted: 08 Mar 2012, 21:21
belgarth@media-server:~/Downloads/TV-Shows/Unsorted$ ls
psych.s06e11.720p.hdtv.x264-compulsion.mkv the.colbert.report.2012.03.07.hdtv.xvid-fqm.avi
psych.s06e11.720p.hdtv.x264-orenji.mkv the.soup.2012.03.07.720p.hdtv.x264-momentum.mkv
survivor.s24e04.720p.hdtv.x264-orenji.mkv
belgarth@media-server:~/Downloads/TV-Shows/Unsorted$ filebot -non-strict -rename --db thetvdb --format "/home/belgarth/Downloads/TV-Shows/{n}/{n} - {s}x{e} - {t}" /home/belgarth\
/Downloads/TV-Shows/Unsorted/*
Rename episodes using [TVRage]
Auto-detected query: [the colbert report, survivor, the soup, psych]
Fetching episode data for [The Soup]
Fetching episode data for [Survivor]
Fetching episode data for [The Colbert Report]
Fetching episode data for [Psych]
Fetching episode data for [Survivor (UK)]
Fetching episode data for [Survivor (BG)]
Fetching episode data for [Survivor (SA)]
Fetching episode data for [Survivor (DE)]
Fetching episode data for [Survivor (HR)]
Fetching episode data for [Survivor (Israel)]
Fetching episode data for [Survivor Africa]
Fetching episode data for [Survivor Srbija]
IllegalArgumentException: File already exists: /home/belgarth/Downloads/TV-Shows/Survivor/Survivor - 24x4 - Bum-Puzzled.mkv
java.lang.IllegalArgumentException: File already exists: /home/belgarth/Downloads/TV-Shows/Survivor/Survivor - 24x4 - Bum-Puzzled.mkv
at net.sourceforge.filebot.cli.CmdlineOperations.renameAll(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.renameSeries(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.rename(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
belgarth@media-server:~/Downloads/TV-Shows/Unsorted$ ls
psych.s06e11.720p.hdtv.x264-compulsion.mkv the.colbert.report.2012.03.07.hdtv.xvid-fqm.avi
psych.s06e11.720p.hdtv.x264-orenji.mkv the.soup.2012.03.07.720p.hdtv.x264-momentum.mkv
survivor.s24e04.720p.hdtv.x264-orenji.mkv
The most important issue with it is that it seems to terminate the run, so that the other files in the directory that could have been properly renames without a conflict fail to do so. I would like to have an option though in addition to tell filebot to overwrite the file with the same name (needed to properly deal with torrent propers)
psych.s06e11.720p.hdtv.x264-compulsion.mkv the.colbert.report.2012.03.07.hdtv.xvid-fqm.avi
psych.s06e11.720p.hdtv.x264-orenji.mkv the.soup.2012.03.07.720p.hdtv.x264-momentum.mkv
survivor.s24e04.720p.hdtv.x264-orenji.mkv
belgarth@media-server:~/Downloads/TV-Shows/Unsorted$ filebot -non-strict -rename --db thetvdb --format "/home/belgarth/Downloads/TV-Shows/{n}/{n} - {s}x{e} - {t}" /home/belgarth\
/Downloads/TV-Shows/Unsorted/*
Rename episodes using [TVRage]
Auto-detected query: [the colbert report, survivor, the soup, psych]
Fetching episode data for [The Soup]
Fetching episode data for [Survivor]
Fetching episode data for [The Colbert Report]
Fetching episode data for [Psych]
Fetching episode data for [Survivor (UK)]
Fetching episode data for [Survivor (BG)]
Fetching episode data for [Survivor (SA)]
Fetching episode data for [Survivor (DE)]
Fetching episode data for [Survivor (HR)]
Fetching episode data for [Survivor (Israel)]
Fetching episode data for [Survivor Africa]
Fetching episode data for [Survivor Srbija]
IllegalArgumentException: File already exists: /home/belgarth/Downloads/TV-Shows/Survivor/Survivor - 24x4 - Bum-Puzzled.mkv
java.lang.IllegalArgumentException: File already exists: /home/belgarth/Downloads/TV-Shows/Survivor/Survivor - 24x4 - Bum-Puzzled.mkv
at net.sourceforge.filebot.cli.CmdlineOperations.renameAll(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.renameSeries(Unknown Source)
at net.sourceforge.filebot.cli.CmdlineOperations.rename(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
belgarth@media-server:~/Downloads/TV-Shows/Unsorted$ ls
psych.s06e11.720p.hdtv.x264-compulsion.mkv the.colbert.report.2012.03.07.hdtv.xvid-fqm.avi
psych.s06e11.720p.hdtv.x264-orenji.mkv the.soup.2012.03.07.720p.hdtv.x264-momentum.mkv
survivor.s24e04.720p.hdtv.x264-orenji.mkv
The most important issue with it is that it seems to terminate the run, so that the other files in the directory that could have been properly renames without a conflict fail to do so. I would like to have an option though in addition to tell filebot to overwrite the file with the same name (needed to properly deal with torrent propers)