source folder naming issues (media root folder named "Sebastian")

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Cerina
Posts: 3
Joined: 01 Aug 2023, 09:35

source folder naming issues (media root folder named "Sebastian")

Post by Cerina »

Hi,

the AMC script is running on a Synology. Sometimes I have an issue with the recognition of the correct movie. The source path is used for identifying the movie. The source path is volume1/resilio/Sebastian and it identifies the movie Infinity as Sebastian (2017) in the example. How can I avoid that the source path name is used for identifying movies?

Code: Select all

filebot-node-task 13 # filebot -script 'fn:amc' /volume1/resilio/Sebastian --output /volume1/FileBot --action clone -non-strict --order Airdate --conflict skip --lang en --def 'skipExtract=y' 'kodi=172.16.0.230' 'pushover=urnpgv5okvu1ydukhcoqp9hqay447c' 'seriesFormat=/volume1/TV Shows/{ny}{'\''/Season '\''+s}{'\''/'\''+ny} {s00e00} {t}' 'movieFormat=/volume1/Movies/{movie}' 'movieDB=TheMovieDB' 'seriesDB=TheTVDB' 'excludeList=.excludes' --apply refresh --log all --log-file '/var/packages/filebot-node/var/filebot.log'

Parameter: skipExtract = y
Parameter: kodi = *****
Parameter: pushover = *****
Parameter: seriesFormat = /volume1/TV Shows/{ny}{'/Season '+s}{'/'+ny} {s00e00} {t}
Parameter: movieFormat = /volume1/Movies/{movie}
Parameter: movieDB = TheMovieDB
Parameter: seriesDB = TheTVDB
Parameter: excludeList = .excludes
Argument[0]: /volume1/resilio/Sebastian
Use excludes: /volume1/FileBot/.excludes (7)
Input: /volume1/resilio/Sebastian/Infinity.mkv
Input: /volume1/resilio/Sebastian/Press Play And Love Again.mkv
Input: /volume1/resilio/Sebastian/Promising Young Woman.mkv
Input: /volume1/resilio/Sebastian/Shattered.mkv
Input: /volume1/resilio/Sebastian/The Last Son.mkv
Missing data: release_date: {adult=false, backdrop_path=null, genre_ids=[Ljava.lang.Object;@6d24ffa1, id=1067485, original_language=en, original_title=Sebastian, overview=Max, a writer in his twenties living in London, starts a double life as a male prostitute called Sebastian. His goal is to do background research for a novel and find a new voice for his writing - and his life., popularity=0.6, poster_path=null, release_date=, title=Sebastian, video=false, vote_average=0.0, vote_count=0}
Missing data: release_date: {adult=false, backdrop_path=null, genre_ids=[Ljava.lang.Object;@55787112, id=692754, original_language=en, original_title=Shattered, overview=A Woman is constantly battered by her husband until the true reason is her husband married her is revealed. Kenneth Okoli, Kiki Omeli, Melvin Oduah, Florence Sunday., popularity=0.6, poster_path=null, release_date=, title=Shattered, video=false, vote_average=0.0, vote_count=0}
Missing data: release_date: {adult=false, backdrop_path=null, genre_ids=[Ljava.lang.Object;@1cd201a8, id=1005591, original_language=en, original_title=Lacrimas Profundere - Songs for the Last View, overview=Intro,  My Velvet Little Darkness, Again It's Over, Sweet Caroline, Amber Girl, My Mescaline. For Bad Times, Should, To Love Here on Knees, Sarah Lou. One Hopes Evening, Ave End, popularity=0.6, poster_path=null, release_date=, title=Lacrimas Profundere - Songs for the Last View, video=true, vote_average=0.0, vote_count=0}
Group: {Movie=Sebastian (2017), Series=null} => [Infinity.mkv, Press Play And Love Again.mkv]
Group: {Movie=Promising Young Woman (2020), Series=null} => [Promising Young Woman.mkv]
Group: {Movie=Shattered (2022), Series=null} => [Shattered.mkv]
Group: {Movie=The Last Son (2021), Series=null} => [The Last Son.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/volume1/resilio/Sebastian/Infinity.mkv]
Auto-detect movie from context [/volume1/resilio/Sebastian/Press Play And Love Again.mkv]
[CLONE] from [/volume1/resilio/Sebastian/Infinity.mkv] to [/volume1/Movies/Sebastian (2017).mkv]
[SKIP] Skipped [/volume1/resilio/Sebastian/Press Play And Love Again.mkv] because [/volume1/Movies/Sebastian (2017).mkv] already exists
[REFRESH] Refresh File Services (/volume1/Movies)
Processed 1 file
Rename movies using [TheMovieDB]
Auto-detect movie from context [/volume1/resilio/Sebastian/Promising Young Woman.mkv]
[CLONE] from [/volume1/resilio/Sebastian/Promising Young Woman.mkv] to [/volume1/Movies/Promising Young Woman (2020).mkv]
[REFRESH] Refresh File Services (/volume1/Movies)
Processed 1 file
Rename movies using [TheMovieDB]
Auto-detect movie from context [/volume1/resilio/Sebastian/Shattered.mkv]
[SKIP] Skipped [/volume1/resilio/Sebastian/Shattered.mkv] because [/volume1/Movies/Shattered (2022).mkv] already exists
Processed 0 files
Rename movies using [TheMovieDB]
Auto-detect movie from context [/volume1/resilio/Sebastian/The Last Son.mkv]
[SKIP] Skipped [/volume1/resilio/Sebastian/The Last Son.mkv] because [/volume1/Movies/The Last Son (2021).mkv] already exists
Processed 0 files
Notify Kodi [172.16.0.230]
POST: http://172.16.0.230:8080/jsonrpc {"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"FileBot finished processing 2 files","message":"\u2022 Infinity\n\u2022 Press Play And Love Again\n\u2022 Promising Young Woman\n\u2022 Shattered\n\u2022 The Last Son","image":"https://app.filebot.net/icon.png"},"id":1}
POST: http://172.16.0.230:8080/jsonrpc {"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}
Sending Pushover notification
Done ヾ(@⌒ー⌒@)ノ
Best regards
Sebastian
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: source folder naming issues

Post by rednoah »

:arrow: The easiest solution is renaming Sebastian to complete, Movies, Media or some other well-known media folder name. Alternatively, you can add a new folder level Sebastian/complete with a well-known media folder name.
:idea: Please read the FAQ and How to Request Help.
Cerina
Posts: 3
Joined: 01 Aug 2023, 09:35

Re: source folder naming issues (media root folder named "Sebastian")

Post by Cerina »

Hi,

the answer was not what I was hopping to get. But thanks for your quick response. Now I have to think about, how to chance the sync process to the Synology.

Best regards
Sebastian
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: source folder naming issues (media root folder named "Sebastian")

Post by rednoah »

Alternatively, you can use a custom command that uses the --q option to force a specific query or query expression:

:arrow: --q manual lookup



:idea: In your specific use case (i.e. well-named files where the file name is the movie name) something like --q "{fn}" might do the trick:

Console Output: Select all

$ filebot -rename *.mkv --q "{fn}" --db TheMovieDB --action TEST --log INFO
[TEST] from [Press Play And Love Again.mkv] to [Press Play (2022).mkv]
:idea: Please read the FAQ and How to Request Help.
Cerina
Posts: 3
Joined: 01 Aug 2023, 09:35

Re: source folder naming issues (media root folder named "Sebastian")

Post by Cerina »

Thank you. I will try it.
Post Reply