Hi,
I have a similar problem and don't want to open a new threat for that.
I also want to seperate movies and tv-shows into different folders, but depending on their certification.
It works well as long as the movie or tv-show is certified. When there is no certification, the movie or tv-show won't come into right folder.
I'm using the rednoah/filebot container for docker on a Windows Host.
Code: Select all
filebot -script 'fn:sysinfo'
------------------------------------------
FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2018-08-14 (r534)
Groovy: 2.5.1
JRE: Java(TM) SE Runtime Environment 10.0.2
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 37 MB Used Memory
OS: Linux (amd64)
HW: Linux fed35c725cdc 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 GNU/Linux
DATA: /data/.filebot
Package: DOCKER
License: FileBot License XXXXX (Valid-Until: 2068-08-30)
Done ヾ(@⌒ー⌒@)ノ
------------------------------------------
[Process completed]
This is the part of my script (movie):
Code: Select all
{certification == "G" || certification == "PG" ? 'Kinderfilme' : 'Filme'}/{n} ({y})/{n} ({y}) {' CD'+pi}
This is the part of my script (tv-show):
Code: Select all
{certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? 'Kinderserien' : 'Serien'}/{n} ({y})/{episode.special ? 'Special' : 'Staffel '+s.pad(2)}/{certification} - {n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}
I've created 2 example files to demonstrate what is happening.
Output from GUI:
Code: Select all
filebot -script 'fn:amc' /volume1/JDownloader --output /volume1 --action TEST -non-strict --order Airdate --conflict auto --lang de --def 'music=y' 'unsorted=y' 'artwork=y' 'subtitles=eng' 'clean=y' 'deleteAfterExtract=y' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? '\''Kinderserien'\'' : '\''Serien'\''}/{n} ({y})/{episode.special ? '\''Special'\'' : '\''Staffel '\''+s.pad(2)}/{n} - {episode.special ? '\''S00E'\''+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart('\'', Part $1'\'')}{'\''.'\''+lang}' 'animeFormat={certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? '\''Kinderserien'\'' : '\''Serien'\''}/{n} ({y})/{episode.special ? '\''Special'\'' : '\''Staffel '\''+s.pad(2)}/{n} - {episode.special ? '\''S00E'\''+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart('\'', Part $1'\'')}{'\''.'\''+lang}' 'movieFormat={certification == "G" || certification == "PG" ? '\''Kinderfilme'\'' : '\''Filme'\''}/{n} ({y})/{n} ({y}) {'\'' CD'\''+pi}' 'musicFormat=Musik/{n}/{album}/{media.TrackPosition.pad(2)} - {t}' 'unsortedFormat=Unbekannt/{fn}.{cf}' 'excludeList=.excludes' --log all --log-file '/usr/local/filebot-node/data/filebot.log'
------------------------------------------
Locking /usr/local/filebot-node/data/filebot.log
Run script [fn:amc] at [Fri Sep 07 06:36:38 UTC 2018]
Parameter: music = y
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = eng
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: minLengthMS = 0
Parameter: minFileSize = 0
Parameter: seriesFormat = {certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? 'Kinderserien' : 'Serien'}/{n} ({y})/{episode.special ? 'Special' : 'Staffel '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}
Parameter: animeFormat = {certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? 'Kinderserien' : 'Serien'}/{n} ({y})/{episode.special ? 'Special' : 'Staffel '+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}
Parameter: movieFormat = {certification == "G" || certification == "PG" ? 'Kinderfilme' : 'Filme'}/{n} ({y})/{n} ({y}) {' CD'+pi}
Parameter: musicFormat = Musik/{n}/{album}/{media.TrackPosition.pad(2)} - {t}
Parameter: unsortedFormat = Unbekannt/{fn}.{cf}
Parameter: excludeList = .excludes
Argument[0]: /volume1/JDownloader
Use excludes: /volume1/.excludes (1)
Input: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e01.h264.br-rip.mkv
Input: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e05.h264.br-rip.mkv
Input: /volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv
rush.hour.h264.br-rip.mkv [series: Rush Hour, movie: Rush Hour (1998)]
Exclude Series: Rush Hour
Group: [tvs:dragon ball] => [dragon.ball.s01e01.h264.br-rip.mkv, dragon.ball.s01e05.h264.br-rip.mkv]
Group: [tvs:null, mov:rush hour 1998] => [rush.hour.h264.br-rip.mkv]
Get [English] subtitles for 2 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e01.h264.br-rip.mkv
No matching subtitles found: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e05.h264.br-rip.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Dragon Ball]
Fetching episode data for [Dragon Ball]
Fetching episode data for [Dragon Ball Z]
Fetching episode data for [Dragon Ball GT]
Fetching episode data for [Dragon Ball Kai]
Fetching episode data for [Dragon Ball Super]
[TEST] from [/volume1/JDownloader/Dragon Ball/dragon.ball.s01e01.h264.br-rip.mkv] to [/Dragon Ball (1986)/Staffel 01/Dragon Ball - S01E01 - Das Geheimnis des Dragonballs.mkv]
[TEST] from [/volume1/JDownloader/Dragon Ball/dragon.ball.s01e05.h264.br-rip.mkv] to [/Dragon Ball (1986)/Staffel 01/Dragon Ball - S01E05 - Yamchu der Wüstenräuber.mkv]
Processed 2 files
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv]
[TEST] from [/volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv] to [/volume1/Filme/Rush Hour (1998)/Rush Hour (1998).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
------------------------------------------
[Process completed]
Output from CLI (PowerShell):
Code: Select all
docker run --rm --volumes-from Filebot_GUI --mount type=bind,source="Z:\Downloads",target=/volume1 --name Filebot rednoah/filebot -script 'fn:amc' /volume1/JDownloader/ --output /volume1/ --action TEST -non-strict --order Airdate --conflict auto --lang de --def 'music=y' 'unsorted=y' 'artwork=y' 'subtitles=eng' 'clean=y' 'deleteAfterExtract=y' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={certification == "\""TV-Y"\"" || certification == "\""TV-Y7"\"" || certification == "\""TV-G"\"" ? "\""Kinderserien"\"" : "\""Serien"\""}/{n} ({y})/{episode.special ? "\""Special"\"" :"\""Staffel "\""+s.pad(2)}/{n} - {episode.special ? "\""S00E"\""+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart("\"", Part ${1}"\"")}{"\""."\""+lang}' 'animeFormat={certification == "\""TV-Y"\"" || certification == "\""TV-Y7"\"" || certification == "\""TV-G"\"" ? "\""Kinderserien"\"" : "\""Serien"\""}/{n} ({y})/{episode.special ? "\""Special"\"" : "\""Staffel "\""+s.pad(2)}/{n} - {episode.special ? "\""S00E"\""+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart("\"", Part ${1}"\"")}{"\""."\""+lang}' 'movieFormat={certification == "\""G"\"" || certification == "\""PG"\"" ? "\""Kinderfilme"\"" : "\""Filme"\""}/{n} ({y})/{n} ({y}) {"\"" CD"\""+pi}' 'musicFormat=Musik/{n}/{album}/{media.TrackPosition.pad(2)} - {t}' 'unsortedFormat=Unbekannt/{fn}.{cf}' 'excludeList=.excludes' --log all --log-file '/usr/local/filebot-node/data/filebot.log'
Locking /usr/local/filebot-node/data/filebot.log
Run script [fn:amc] at [Fri Sep 07 07:00:20 UTC 2018]
Parameter: music = y
Parameter: unsorted = y
Parameter: artwork = y
Parameter: subtitles = eng
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: minLengthMS = 0
Parameter: minFileSize = 0
Parameter: seriesFormat = {certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? "Kinderserien" : "Serien"}/{n} ({y})/{episode.special ? "Special" : "Staffel "+s.pad(2)}/{n} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(", Part ${1}")}{"."+lang}
Parameter: animeFormat = {certification == "TV-Y" || certification == "TV-Y7" || certification == "TV-G" ? "Kinderserien" : "Serien"}/{n} ({y})/{episode.special ? "Special" : "Staffel "+s.pad(2)}/{n} - {episode.special ? "S00E"+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(", Part ${1}")}{"."+lang}
Parameter: movieFormat = {certification == "G" || certification == "PG" ? "Kinderfilme" : "Filme"}/{n} ({y})/{n} ({y}) {" CD"+pi}
Parameter: musicFormat = Musik/{n}/{album}/{media.TrackPosition.pad(2)} - {t}
Parameter: unsortedFormat = Unbekannt/{fn}.{cf}
Parameter: excludeList = .excludes
Argument[0]: /volume1/JDownloader
Use excludes: /volume1/.excludes (1)
Input: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e01.h264.br-rip.mkv
Input: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e05.h264.br-rip.mkv
Input: /volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv
rush.hour.h264.br-rip.mkv [series: Rush Hour, movie: Rush Hour (1998)]
Exclude Series: Rush Hour
Group: [tvs:dragon ball] => [dragon.ball.s01e01.h264.br-rip.mkv, dragon.ball.s01e05.h264.br-rip.mkv]
Group: [tvs:null, mov:rush hour 1998] => [rush.hour.h264.br-rip.mkv]
Get [English] subtitles for 2 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e01.h264.br-rip.mkv
No matching subtitles found: /volume1/JDownloader/Dragon Ball/dragon.ball.s01e05.h264.br-rip.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Dragon Ball]
Fetching episode data for [Dragon Ball]
Fetching episode data for [Dragon Ball Z]
Fetching episode data for [Dragon Ball GT]
Fetching episode data for [Dragon Ball Kai]
Fetching episode data for [Dragon Ball Super]
[TEST] from [/volume1/JDownloader/Dragon Ball/dragon.ball.s01e01.h264.br-rip.mkv] to [/Dragon Ball (1986)/Staffel 01/Dragon Ball - S01E01 - Das Geheimnis des Dragonballs.mkv]
[TEST] from [/volume1/JDownloader/Dragon Ball/dragon.ball.s01e05.h264.br-rip.mkv] to [/Dragon Ball (1986)/Staffel 01/Dragon Ball - S01E05 - Yamchu der Wüstenräuber.mkv]
Processed 2 files
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv]
[TEST] from [/volume1/JDownloader/Rush Hour/I/rush.hour.h264.br-rip.mkv] to [/volume1/Filme/Rush Hour (1998)/Rush Hour (1998).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
As you can see, Dragon Ball is not moved into the "volume1/Serien/..." folder as expected, but to "/Dragon Ball/...", what makes no sense. Any idea what's going wrong?