FileBot - Batches

Aus Laub-Home Wiki

MKCLEAN

Movie

@echo off

IF [%1]==[] (
    ECHO nothing to rename, need 1 parameter
) ELSE (
	ECHO Renaming Movie
	ECHO #####################################
	ECHO Path: %1
C:\_filebot\FileBot_4.9.4-portable\filebot.exe ^
 -r ^
 --output "./_fbot_out" ^
 --conflict skip ^
 --action DUPLICATE ^
 -non-strict ^
 --lang de ^
 --apply artwork cover nfo url metadata subtitles date tags ^
 -script fn:amc ^
 --def artwork=y ^
 --def subtitles=en,de ^
 --def movieDB=TheMovieDB seriesDB=TheTVDB animeDB=AniDB musicDB=ID3 ^
 --def "ut_label=MOVIE" ^
 --def movieFormat="{ plex.id %% {\" [$genre, $vf, $vc, $ac]\"} }" ^
 --file-filter f.video ^
 --log-file amc-log.txt ^
 -rename %1
)
ECHO.
PAUSE

Movie Query

@echo off
SET /P query="Query: "

IF [%1]==[] (
    ECHO nothing to rename, need 1 parameter
) ELSE (
	ECHO Renaming Movie
	ECHO #####################################
	ECHO Path: %1
	ECHO Query: %query%	


C:\_filebot\FileBot_4.9.4-portable\filebot.exe ^
 -r ^
 --output "./_fbot_out" ^
 --conflict skip ^
 --action DUPLICATE ^
 -non-strict ^
 --lang de ^
 --apply artwork cover nfo url metadata subtitles date tags ^
 -script fn:amc ^
 --def artwork=y ^
 --def subtitles=en,de ^
 --def movieDB=TheMovieDB seriesDB=TheTVDB animeDB=AniDB musicDB=ID3 ^
 --def "ut_label=MOVIE" ^
 --def movieFormat="{ plex.id %% {\" [$genre, $vf, $vc, $ac]\"} }" ^
 --file-filter f.video ^
 --log-file amc-log.txt ^
 --q "%query%"^
 -rename %1
)
ECHO.
PAUSE

TV Show

@echo off

IF [%1]==[] (
    ECHO nothing to rename, need 1 parameter
) ELSE (
	ECHO Renaming Movie
	ECHO #####################################
	ECHO Path: %1



C:\_filebot\FileBot_4.9.4-portable\filebot.exe ^
 -r ^
 --output "./_fbot_out" ^
 --conflict skip ^
 --action DUPLICATE ^
 -non-strict ^
 --lang de ^
 --apply artwork cover nfo url metadata subtitles date tags ^
 -script fn:amc ^
 -no-xattr ^
 --def minFileSize=0 ^
 --def minLengthMS=0 ^
 --def artwork=y ^
 --def subtitles=en,de ^
 --def movieDB=TheMovieDB seriesDB=TheTVDB animeDB=AniDB musicDB=ID3 ^
 --def "ut_label=TV" ^
 --def seriesFormat="{ plex * \" ^($y^) {tvdb-$id}\" %% {\" {tvdb-$id} [$genre, $vf, $vc, $ac]\"} }" ^
 --log-file amc-log.txt ^
 -rename %1
)
ECHO.
PAUSE

TV Show Query

@echo off
SET /P query="Query: "

IF [%1]==[] (
    ECHO nothing to rename, need 1 parameter
) ELSE (
	ECHO Renaming Movie
	ECHO #####################################
	ECHO Path: %1
	ECHO Query: %query%


C:\_filebot\FileBot_4.9.4-portable\filebot.exe ^
 -r ^
 --output "./_fbot_out" ^
 --conflict skip ^
 --action DUPLICATE ^
 -non-strict ^
 --lang de ^
 --apply artwork cover nfo url metadata subtitles date tags ^
 -script fn:amc ^
 -no-xattr ^
 --def minFileSize=0 ^
 --def minLengthMS=0 ^
 --def artwork=y ^
 --def subtitles=en,de ^
 --def movieDB=TheMovieDB seriesDB=TheTVDB animeDB=AniDB musicDB=ID3 ^
 --def "ut_label=TV" ^
 --def seriesFormat="{ plex * \" ^($y^) {tvdb-$id}\" %% {\" {tvdb-$id} [$genre, $vf, $vc, $ac]\"} }" ^
 --log-file amc-log.txt ^
 --q "%query%" ^
 -rename %1
)
ECHO.
PAUSE