Page 1 of 1

also rename and move edl, vdr, ...

Posted: 08 Dec 2017, 20:53
by alturismo
Hi,

im trying to get filebot also process edl and vdr files from my personal recordings and comskipped files ...
actually it looks i have some filter cause these files are not even processed at all, they just stay untouched in the /input ...
my config looks like this

Code: Select all

SCRIPTS_TO_DOWNLOAD=(

MUSIC_FORMAT="MP3/{n}/{album}/{media.TrackPosition.pad(2)} - {t}"
MOVIE_FORMAT="{file =~ /(?i)AC3D|dubbed|.ld.|WebHD/ ? 'VCD' : 'HDDVDR'}/{n} {y}/{n} {y} {vf} {' CD'+pi}{'.'+lang}"
SERIES_FORMAT="TVRIPS/{n}/{episode.special ? 'Special' : 'S'+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}"

. /files/FileBot.conf

if [ "$SUBTITLE_LANG" == "" ];then
  SUBTITLE_OPTION=""
else
  SUBTITLE_OPTION="subtitles=$SUBTITLE_LANG"
fi

VERSION=4

. /files/pre-run.sh

filebot -script fn:amc -no-xattr --output /output --lang de --log-file /files/amc.log --action move --conflict auto \
  -non-strict --def minsize=1 ut_dir=/input ut_kind=multi music=y deleteAfterExtract=y clean=y \
  excludeList=/config/amc-exclude-list.txt $SUBTITLE_OPTION \
  movieFormat="$MOVIE_FORMAT" musicFormat="$MUSIC_FORMAT" seriesFormat="$SERIES_FORMAT"

...
in the log theres also nothing from the .edl or .vdr files ... no skip, ignore, ...

for any tips thanks ahead.

Rest working superb so far ... thanks alot for this nice software.

Re: also rename and move edl, vdr, ...

Posted: 09 Dec 2017, 09:52
by rednoah
What does /files/amc.log say?

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 01:04
by alturismo
sadly nothing ...

like they wouldnt exist, here an example from an test run ... folder with .edl and .vdr remains in /input/Elementary S01E02 ... if there are .txt files they get wiped ...

Code: Select all

Run script [fn:amc] at [Fri Dec 08 21:08:30 CET 2017]
Parameter: minsize = 1
Parameter: ut_dir = /input
Parameter: ut_kind = multi
Parameter: music = y
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: excludeList = /config/amc-exclude-list.txt
Parameter: subtitles = de
Parameter: movieFormat = {file =~ /(?i)AC3D|dubbed|.ld.|WebHD/ ? 'VCD' : 'HDDVDR'}/{n} {y}/{n} {y} {vf} {' CD'+pi}{'.'+lang}
Parameter: musicFormat = MP3/{n}/{album}/{media.TrackPosition.pad(2)} - {t}
Parameter: seriesFormat = TVRIPS/{n}/{episode.special ? 'Special' : 'S'+s.pad(2)}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replaceAll(/[!?.]+$/).replacePart(', Part ')}{'.'+lang}
Use excludes: /config/amc-exclude-list.txt (1933)
Input: /input/Elementary S01E02/Elementary S01E02.avi
Group: [tvs:elementary] => [Elementary S01E02.avi]
Get [German] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /input/Elementary S01E02/Elementary S01E02.avi
Rename episodes using [TheTVDB]
Auto-detected query: [Elementary]
Fetching episode data for [Elementary]
[MOVE] From [/input/Elementary S01E02/Elementary S01E02.avi] to [/output/TVRIPS/Elementary/S01/Elementary - S01E02 - Während du schliefst.avi]
Processed 1 files
Clean clutter files and empty folders
Done ヾ(@⌒ー⌒@)ノ

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 07:16
by rednoah
Are the edl/vdr files named like this?

Code: Select all

/input/Elementary S01E02/Elementary S01E02.avi
/input/Elementary S01E02/Elementary S01E02.edl
/input/Elementary S01E02/Elementary S01E02.vdr
I'm not sure if that's supposed to be supported or not. I know that the GUI can handle companion files that are named properly, but I'm pretty sure that the amc script doesn't support companion files (except for existing subtitles).

:idea: What are edl/vdr files for anyway?

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 07:39
by alturismo
yes, they are named like this, same as video file ;)

these are timestamp files created by comskip for TV records,
also automatic chapters ...

as comskip also sometimes like to cut out what belongs to the show i d rather keep those and cut later manually.

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 07:54
by alturismo
and seems thats the issue, web GUI at least renames those files also ... so i assume amc script cant ... so no rename and auto move with amc and comapnion files.

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 08:19
by rednoah
Does "Web UI" refer to FileBot Node? Because that's just a wrapper for the amc script.

If you use filebot -rename calls then it'll work, so you can do some scripting with bash.

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 08:22
by alturismo
i use a docker from unraid, and i dont know if i can follow u on this.

i just enabled webUI for testing, and if theres the video file with corresponding edl and vdr, renaming works, no move or so like the auto script ...

filebot -rename before i let the regular rename and move run ?

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 08:44
by rednoah
e.g.

Code: Select all

filebot -rename . --db thetvdb --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Elementary]
Fetching episode data for [Elementary]
[TEST] from [Elementary S01E02.avi] to [Elementary - 1x02 - While You Were Sleeping.avi]
[TEST] from [Elementary S01E02.xyz] to [Elementary - 1x02 - While You Were Sleeping.xyz]
Processed 2 files

Not familiar with unRAID though. I don't maintain those packages.

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 08:57
by alturismo
the command line works, but i dont know how i then move automatically also as supposed by the move, series rules ...
it runs exactly like u describe it

Code: Select all

root@f0c13a2771ce:/input/Elementary.S01E03# filebot -rename . --db thetvdb --lang de --action test
Rename episodes using [TheTVDB]
Auto-detected query: [Elementary]
Fetching episode data for [Elementary]
[TEST] From [/input/Elementary.S01E03/Elementary S01E03.avi] to [/input/Elementary.S01E03/Elementary - 1x03 - Der Ballonmann.avi]
[TEST] From [/input/Elementary.S01E03/Elementary S01E03.edl] to [/input/Elementary.S01E03/Elementary - 1x03 - Der Ballonmann.edl]
[TEST] From [/input/Elementary.S01E03/Elementary S01E03.vdr] to [/input/Elementary.S01E03/Elementary - 1x03 - Der Ballonmann.vdr]
Processed 3 files
root@f0c13a2771ce:/input/Elementary.S01E03#
now i could replace test with move now ... but that would all be only manually then

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 09:07
by rednoah
Just add this:

Code: Select all

--action move --output /output/Media --format {plex}

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 09:18
by alturismo
i understand that, thanks, i know now that companion files are working but NOT with the amc script ...
so there is my issue now what to do.

the goal is just for explenation, /input is receiving recorded material and downloaded material, all these are processed perfecly by amc script rules,
MUSIC_FORMAT, MOVIE_FORMAT, SERIES_FORMAT and moved where they belong to, just not the recorded generated edl and vdr files.

i have to consider to add a 2nd filebot instance and sep source dir for recorded only so they get moved properly too ... but then i would have to trigger them manually
after record is finished cause i cant use the amc script anymore (or let it trigger by some script), i guess that will by my only solution.

or am i missing something now (according to my filebot.sh from 1st post)

thanks again

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 09:47
by rednoah
Yeah, I think that's pretty much how it would work right now.

I might add support for these kinds of companion files in the future if it's something that is requested more than once.

Re: also rename and move edl, vdr, ...

Posted: 10 Dec 2017, 10:17
by alturismo
would be great, thanks again for the help and pointing ;)

Re: also rename and move edl, vdr, ...

Posted: 12 Jul 2021, 13:03
by dinki
rednoah wrote: 10 Dec 2017, 09:47 Yeah, I think that's pretty much how it would work right now.

I might add support for these kinds of companion files in the future if it's something that is requested more than once.
I hate to pull up a really old thread, but this is what I'm facing today and am wondering if a fix exists.

I'm able to use AMC script for renaming the video file and creating the directory structure I need, but the comskip (EDL) files do not come along. I can use filebot directly, and it appears to work, but I don't get the nice directory structure (Showname/Season/) that I'd like to have.

Is there any way to get the rename of all files plus move to the directory structure?

Re: also rename and move edl, vdr, ...

Posted: 12 Jul 2021, 13:08
by rednoah
Here's how companion files work nowadays:
viewtopic.php?t=12172


:idea: Note that the amc script is special in that it generally ignores non-media files, to eliminated the possibility of accidentally messing up important files due to its unattended nature.


:idea: The directory structure is generated by the {plex} format. Unrelated to the amc script specifically, just so happens to be the default there.

Re: also rename and move edl, vdr, ...

Posted: 12 Jul 2021, 15:47
by dinki
Thanks for the information. I understand now and things are working great!