Hello rednoah, thank you for the reply.
After your hints, I was reading more in the docs on how I was able to achieve this. I came up with a batch script (Here you see it for TV-Shows). And it is finally working now, after many trial and errors.
Code: Select all
@echo off
SET input=%1
SET output="Z:\Output Serien"
filebot -rename -r %input% --format "{n}/{'Season '+s}/{s00e00} - {t}" --db TheTVDB --lang German --mode interactive --apply import --output %output% -exec "Z:\Input Serien\ZZZrenameSkript.bat" %output% "{n}" "{'Season '+s}" "{s00e00}" %input% "{original}"
Code: Select all
@echo off
SET output=%1
SET output2=%output:~0,-1%\
SET name=%2
SET nameNEW=%name:~1,-1%\
SET staffel=%3
SET staffelNEW=%staffel:~1,-1%\
SET episode=%4-
SET origOrdner=%5
SET origOrdnerNEW=%origOrdner:~17,-1%
SET OrigName=%6
SET outputOrdner=%output2%%nameNEW%%staffelNEW%"
SET outputOrdner2=%output2%%nameNEW%%staffelNEW%
SET outputEpisode=%outputOrdner2%%origOrdnerNEW%\%episode%%OrigName%
if not exist %outputOrdner2%%origOrdnerNEW%" mkdir %outputOrdner2%%origOrdnerNEW%"
type NUL > %outputEpisode%.txt"
I know it's messy, but this was driving me crazy, and I'm happy, that it finally works now.
The script will start, when I move a TV-Show folder over the first batch file. The setup for movies is similar.
Please let me know what you think. Maybe there is some room for improvement.
Edit: The structure I get from this looks like this:
From
Code: Select all
Z:\Input Serien\Spice.and.Wolf.German.AC3.DL.1080p....
To this:
Code: Select all
Z:\Output Serien\Spice and Wolf (2008)\Season 1\S01E01 - Die Wölfin und das edle Gewand.mkv
with the old/original folder name and the original file names as 0kb text files Inside:
Code: Select all
Z:\Output Serien\Spice and Wolf (2008)\Season 1\Spice.and.Wolf.German.AC3.DL.1080p....\S01E01-Spice.and.Wolf.E01v2.German.AC3.DL.1080p...txt
You have to make sure, that you have the same path length. Otherwise the script will brake.
Also I can copy the current history to the new path. But for now I will leave it out.
Code: Select all
xcopy "C:\Users\...\AppData\Roaming\FileBot\history.xml" %outputOrdner% /Y