Looking for explanation ut_xxxx

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Looking for explanation ut_xxxx

Post by virtualfrancky » 12 Sep 2018, 09:56

Hi, is there somewhere the explanation of what is it, and how to use the argument : ut_label and all ut_xxx

Thanks
Last edited by virtualfrancky on 12 Sep 2018, 17:48, edited 1 time in total.

virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Re: Looking for explenation ut_xxxx

Post by virtualfrancky » 12 Sep 2018, 10:44

Ok I think I have found, ut looks like utorrent, and it looks like they are the variable for each category ( Label, Title etc...), am I correct ?

So if I use rtorrent, I dont need these paramaters.

virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Re: Looking for explanation ut_xxxx

Post by virtualfrancky » 12 Sep 2018, 18:54

Ok after more investigation, it looks like I might need them, since I want to symlink the file to their own directory according to the Label in rtorrent.

But it's a mystery to me how to get it, and how to use it.

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

Re: Looking for explanation ut_xxxx

Post by rednoah » 14 Sep 2018, 05:59

Yes, these variables are just used to pass information like file path / label / title / etc from the torrent application to filebot.

The amc script can be used from command-line directly, and does not require any of these options to run, but some might be useful, e.g. --def ut_label=TV can be used to force TV mode.

--def ut_label is the only useful option really, and you can access that value via the {label} in your custom format, so you can easily generate different output paths for different labels.

e.g.

Code: Select all

--def movieFormat="X:/{label}/{plex}"
:idea: Please read the FAQ and How to Request Help.

virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Re: Looking for explanation ut_xxxx

Post by virtualfrancky » 14 Sep 2018, 20:22

Thanks rednoah, that's what I tried, but it doesnt seems to work for me.

I use this script :

Code: Select all

#!/bin/sh -xu

# Input Parameters
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="$3"

export LANG="fr_FR.UTF-8"
export LC_ALL="fr_FR.UTF-8"

# Configuration
CONFIG_OUTPUT="$/home/francky/media"


filebot -script fn:amc --output "/home/francky/media/" --action test --conflict skip -non-strict "/home/francky/torrents/rtorrent/finished/" --log-file amc.log --def movieFormat="{label}/{localize.French.n} ({y})" seriesFormat="{label}/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {s00e00}" animeFormat="{label}/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {s00e00}" clean=y ut_dir="$ARG_PATH" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" & 
And the files were move to the root or root.

So {label} was not recognise has a value and use for the path.

kim
Power User
Posts: 648
Joined: 15 May 2014, 16:17

Re: Looking for explanation ut_xxxx

Post by kim » 15 Sep 2018, 14:13

have you tried with this in front ?

Code: Select all

--def 
e.g.

Code: Select all

--def ut_label="$ARG_LABEL"

virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Re: Looking for explanation ut_xxxx

Post by virtualfrancky » 15 Sep 2018, 22:35

Well --def is already in the scriptin front of movieFormat.

kim
Power User
Posts: 648
Joined: 15 May 2014, 16:17

Re: Looking for explanation ut_xxxx

Post by kim » 16 Sep 2018, 00:37

What does the log say?
Parameter:
or
Argument[1]: Does not exist:
Illegal Argument:

virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Re: Looking for explanation ut_xxxx

Post by virtualfrancky » 16 Sep 2018, 07:07

Here is the full log
Run script [fn:amc] at [Sun Sep 16 09:06:10 CEST 2018]
Parameter: movieFormat = {lable}/films/{localize.French.n} ({y})
Parameter: seriesFormat = {label}/series/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {s00e00}
Parameter: animeFormat = {label}/{n}/{episode.special ? 'Special' : 'Season '+s.pad(2)}/{n} - {s00e00}
Parameter: clean = y
Parameter: ut_dir =
Parameter: ut_kind = multi
Parameter: ut_title =
Parameter: ut_label =
Argument[0]: /home/francky/torrents/rtorrent/finished
Input: /home/francky/torrents/rtorrent/finished/Castle.Rock.S01E09FASTSUB.VOSTFR.720p.HULU.WEB-DL.AAC2.0.H.264-GOLD/Castle.Rock.S01E09FASTSUB.VOSTFR.720p.HULU.WEB-DL.AAC2.0.H.264-GOLD.mkv
Input: /home/francky/torrents/rtorrent/finished/Castle.Rock.S01E10.FiNAL.FASTSUB.VOSTFR.720p.WEBRip.x264-WEEDS.mkv
Input: /home/francky/torrents/rtorrent/finished/Jurassic World Fallen Kingdom 2018 ULTi 1080p BluRay x264-VENUE.mkv
Input: /home/francky/torrents/rtorrent/finished/Les rivières pourpres - S01E01 - Le jour des cendres P1 - WQM.mkv
Input: /home/francky/torrents/rtorrent/finished/Les.Rivieres.Pourpres.S01E02.FRENCH.720p.HDTV.x264-AMB3R/Les.Rivieres.Pourpres.S01E02.FRENCH.720p.HDTV.x264-AMB3R.mkv
Input: /home/francky/torrents/rtorrent/finished/Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG/Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG.avi
Input: /home/francky/torrents/rtorrent/finished/Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG/Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG.avi
Input: /home/francky/torrents/rtorrent/finished/Solo A Star Wars Story 2018 MULTi 1080p BluRay AC3 x265-HD2.mkv
Input: /home/francky/torrents/rtorrent/finished/The.Hunt.For.Red.October.1990.MULTi.1080p.BluRay.x264-ROUGH/the.hunt.for.red.october.1990.multi.1080p.bluray.x264-rough.mkv
Input: /home/francky/torrents/rtorrent/finished/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv
Input: /home/francky/torrents/rtorrent/finished/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv
Input: /home/francky/torrents/rtorrent/finished/The.Purge.S01E02.FASTSUB.VOSTFR.720p.HDTV.x264-GOLD/The.Purge.S01E02.FASTSUB.VOSTFR.720p.HDTV.x264-GOLD.mkv
xattr: [Castle.Rock.S01E09FASTSUB.VOSTFR.720p.HULU.WEB-DL.AAC2.0.H.264-GOLD.mkv] => [Castle Rock - 1x09 - Henry Deaver]
xattr: [Castle.Rock.S01E10.FiNAL.FASTSUB.VOSTFR.720p.WEBRip.x264-WEEDS.mkv] => [Castle Rock - 1x10 - Romans]
Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG.avi [series: scooby doo et la creature des tenebres 2008 notag, movie: Scooby-Doo! and the Goblin King (2008)]
Exclude Series: scooby doo et la creature des tenebres 2008 notag
xattr: [Solo A Star Wars Story 2018 MULTi 1080p BluRay AC3 x265-HD2.mkv] => [Solo: A Star Wars Story (2018)]
xattr: [The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv] => [The Purge - 1x01 - What is America?]
xattr: [The.Purge.S01E02.FASTSUB.VOSTFR.720p.HDTV.x264-GOLD.mkv] => [The Purge - 1x02 - Take What's Yours]
Group: [tvs:castle rock] => [Castle.Rock.S01E09FASTSUB.VOSTFR.720p.HULU.WEB-DL.AAC2.0.H.264-GOLD.mkv, Castle.Rock.S01E10.FiNAL.FASTSUB.VOSTFR.720p.WEBRip.x264-WEEDS.mkv]
Group: [mov:jurassic world fallen kingdom 2018] => [Jurassic World Fallen Kingdom 2018 ULTi 1080p BluRay x264-VENUE.mkv]
Group: [tvs:les rivieres pourpres] => [Les rivières pourpres - S01E01 - Le jour des cendres P1 - WQM.mkv, Les.Rivieres.Pourpres.S01E02.FRENCH.720p.HDTV.x264-AMB3R.mkv]
Group: [tvs:null, mov:scooby doo and the goblin king 2008] => [Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG.avi]
Group: [mov:scooby doo and the witchs ghost 1999] => [Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG.avi]
Group: [mov:solo a star wars story 2018] => [Solo A Star Wars Story 2018 MULTi 1080p BluRay AC3 x265-HD2.mkv]
Group: [mov:the hunt for red october 1990] => [the.hunt.for.red.october.1990.multi.1080p.bluray.x264-rough.mkv]
Group: [tvs:the purge] => [The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv, The.Purge.S01E02.FASTSUB.VOSTFR.720p.HDTV.x264-GOLD.mkv, The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Castle Rock]
Fetching episode data for [Castle Rock]
Fetching episode data for [Castle]
Fetching episode data for [Castle (2009)]
[TEST] from [/home/francky/torrents/rtorrent/finished/Castle.Rock.S01E09FASTSUB.VOSTFR.720p.HULU.WEB-DL.AAC2.0.H.264-GOLD/Castle.Rock.S01E09FASTSUB.VOSTFR.720p.HULU.WEB-DL.AAC2.0.H.264-GOLD.mkv] to [/series/Castle Rock/Season 01/Castle Rock - S01E09.mkv]
[TEST] from [/home/francky/torrents/rtorrent/finished/Castle.Rock.S01E10.FiNAL.FASTSUB.VOSTFR.720p.WEBRip.x264-WEEDS.mkv] to [/series/Castle Rock/Season 01/Castle Rock - S01E10.mkv]
Processed 2 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/francky/torrents/rtorrent/finished/Jurassic World Fallen Kingdom 2018 ULTi 1080p BluRay x264-VENUE.mkv]
Stripping invalid characters from new path: /films/Jurassic World : Fallen Kingdom (2018)
[TEST] from [/home/francky/torrents/rtorrent/finished/Jurassic World Fallen Kingdom 2018 ULTi 1080p BluRay x264-VENUE.mkv] to [/films/Jurassic World Fallen Kingdom (2018).mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [les rivières pourpres, les rivieres pourpres]
Resource not found: https://api.thetvdb.com/search/series?n ... s+pourpres
Failed to fetch episode data: [les rivières pourpres, les rivieres pourpres]
CmdlineException: Failed to match files to episode data
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/francky/torrents/rtorrent/finished/Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG/Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG.avi]
[TEST] from [/home/francky/torrents/rtorrent/finished/Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG/Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG.avi] to [/films/Scooby-Doo! et la créature des ténèbres (2008).avi]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/francky/torrents/rtorrent/finished/Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG/Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG.avi]
[TEST] from [/home/francky/torrents/rtorrent/finished/Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG/Scooby-Doo.Et.Le.Fantôme.De.La.Sorcière.1999.FRENCH.DVDRip.XviD-NOTAG.avi] to [/films/Scooby-Doo ! et le fantôme de la sorcière (1999).avi]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/francky/torrents/rtorrent/finished/Solo A Star Wars Story 2018 MULTi 1080p BluRay AC3 x265-HD2.mkv]
Stripping invalid characters from new path: /films/Solo : A Star Wars Story (2018)
[TEST] from [/home/francky/torrents/rtorrent/finished/Solo A Star Wars Story 2018 MULTi 1080p BluRay AC3 x265-HD2.mkv] to [/films/Solo A Star Wars Story (2018).mkv]
Processed 1 files
Rename movies using [TheMovieDB]
[TEST] from [/home/francky/torrents/rtorrent/finished/The.Hunt.For.Red.October.1990.MULTi.1080p.BluRay.x264-ROUGH/the.hunt.for.red.october.1990.multi.1080p.bluray.x264-rough.mkv] to [/films/À la poursuite d'Octobre Rouge (1990).mkv]
Processed 1 files
Rename episodes using [TheTVDB]
Auto-detected query: [The Purge]
Fetching episode data for [The Purge]
Auto-detected query: [the purge]
Fetching episode data for [The Purge]
[TEST] from [/home/francky/torrents/rtorrent/finished/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv] to [/series/The Purge/Season 01/The Purge - S01E01.mkv]
[TEST] from [/home/francky/torrents/rtorrent/finished/The.Purge.S01E02.FASTSUB.VOSTFR.720p.HDTV.x264-GOLD/The.Purge.S01E02.FASTSUB.VOSTFR.720p.HDTV.x264-GOLD.mkv] to [/series/The Purge/Season 01/The Purge - S01E02.mkv]
[TEST] from [/home/francky/torrents/rtorrent/finished/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD/The.Purge.S01E01.FASTSUB.VOSTFR.720p.AMZN.WEB-DL.DDP5.1.H.264-GOLD.mkv] to [/series/The Purge/Season 01/The Purge - S01E01.mkv]
Processed 3 files
Done ヾ(@⌒ー⌒@)ノ
There is another problem also. Scooby Doo is recognize as a movie, which is right, but in rtorrent the label is "DA_films", so should be move into the directory /home/francky/media/DA_films, but that's not the case, it's move "/home/francky/media/films".
One of the file is exclude "Scooby-Doo.Et.La.Creature.Des.Tenebres.2008.FRENCH.DVDRip.XviD-NOTAG.avi", and I dont know why too.

My goal is to have file moved according to their label in rtorrent, label are "films" "series" "DA_films" "DA_series"

Thank you for your help.

kim
Power User
Posts: 648
Joined: 15 May 2014, 16:17

Re: Looking for explanation ut_xxxx

Post by kim » 16 Sep 2018, 15:10

ut_ ??? is not getting to filebot = most be a µTorrent/ Linux problem ?

I think you can only use input OR ut_dir
"/home/francky/torrents/rtorrent/finished/" OR ut_dir="$ARG_PATH"

viewtopic.php?f=4&t=215
look @
Setup Instructions for µTorrent:
more info viewtopic.php?t=4717

Code: Select all

filebot -script fn:sysinfo
what is your output ?

exclude problem
have you used an exclude list before or run lookup on that file many times ?
--def excludeList=amc.txt Keep a list of previously processed files to be ignored in future runs (if you run this script on the same files repeatedly you must enable this option)
btw: filebot no problem with that filename to match correct here, so it's a locale problem

virtualfrancky
Posts: 19
Joined: 07 Aug 2018, 19:07

Re: Looking for explanation ut_xxxx

Post by virtualfrancky » 16 Sep 2018, 19:26

Ok thanks again for your help.
I m looking for the rtorrent problem with the directory.

Here is the output of what you asked

Code: Select all

(1:581)# 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
GVFS: PlatformGVFS [/run/user/0/gvfs]
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: 8 Core / 3 GB Max Memory / 36 MB Used Memory
OS: Linux (amd64)
HW: Linux Seedbox-FBI 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
DATA: /root/.filebot
Package: DEB
License: FileBot License P4301459 (Valid-Until: 2019-08-17)
Done ヾ(@⌒ー⌒@)ノ
There is no excludelist, but for testing purpose I may have execute the script several times.

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

Re: Looking for explanation ut_xxxx

Post by rednoah » 20 Sep 2018, 05:17

Since no label is passed in:

Code: Select all

Parameter: ut_label =
{label} won't have a value.


e.g. simple test case:

Code: Select all

filebot -list --q firefly --db TheTVDB --format "{n} {sxe} {label}" --def ut_label="Hello World"
Firefly 1x01 Hello World
...

:arrow: You may need to look into your upstream script and see how it's called and what the parameter values are. Because FileBot doesn't get a label value passed in according to the log.
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest