also rename and move edl, vdr, ...

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

also rename and move edl, vdr, ...

Post by alturismo » 08 Dec 2017, 20:53

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.

User avatar
rednoah
The Source
Posts: 14942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 09 Dec 2017, 09:52

What does /files/amc.log say?
:idea: Please read the FAQ and How to Request Help.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 01:04

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 ヾ(@⌒ー⌒@)ノ

User avatar
rednoah
The Source
Posts: 14942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 10 Dec 2017, 07:16

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?
:idea: Please read the FAQ and How to Request Help.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 07:39

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.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 07:54

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.

User avatar
rednoah
The Source
Posts: 14942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 10 Dec 2017, 08:19

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.
:idea: Please read the FAQ and How to Request Help.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 08:22

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 ?

User avatar
rednoah
The Source
Posts: 14942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 10 Dec 2017, 08:44

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.
:idea: Please read the FAQ and How to Request Help.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 08:57

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

[email protected]:/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
[email protected]:/input/Elementary.S01E03#
now i could replace test with move now ... but that would all be only manually then

User avatar
rednoah
The Source
Posts: 14942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 10 Dec 2017, 09:07

Just add this:

Code: Select all

--action move --output /output/Media --format {plex}
:idea: Please read the FAQ and How to Request Help.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 09:18

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

User avatar
rednoah
The Source
Posts: 14942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah » 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.
:idea: Please read the FAQ and How to Request Help.

alturismo
Posts: 8
Joined: 08 Dec 2017, 20:20

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

Post by alturismo » 10 Dec 2017, 10:17

would be great, thanks again for the help and pointing ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests