Page 11 of 11
Re: [SNIPPET] Sort into A-Z folders
Posted: 07 Nov 2021, 20:00
by rednoah
JALinker wrote: 07 Nov 2021, 18:24
Is there a way to sort on names minus "The"?
[SNIPPET] Sort Name
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 30 Dec 2021, 17:49
by MickeMM
It cant find the right name for Harry Potter movie (8 movies). See pic:
http://www.bilddump.se/bilder/202112301 ... 18.160.png
I have try both Ubuntu and Windows with same result.
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 31 Dec 2021, 02:54
by rednoah
Please include
file paths as text when reporting mismatches
(press F7 to copy debug information)
EDIT:
Looks weird though. My first guess would be some misleading IMDB ID in the *.nfo file that forces the same movie by ID for all files in the same folder.
What's the text content of the nfo file?
Re: [POC] Custom Format Server
Posted: 25 Jan 2022, 00:11
by devster
Could this be reworked so that FileBot receives a file name plus information about the type of file and it returns a filename and location?
E.g.
Code: Select all
curl "somethingsomething/post" --data-urlencode "file=${file}" --data-urlencode dir="$(basename ${file})" --data-urlencode output=/Media --data-urlencode label=tv_shows --data @<(mediainfo --full --output=xml "${file}")
and it'd return file destination?
Re: [POC] Custom Format Server
Posted: 25 Jan 2022, 03:03
by rednoah
devster wrote: 25 Jan 2022, 00:11
Could this be reworked so that FileBot receives a file name plus information about the type of file and it returns a filename and location?
That is what the code above does:
Code: Select all
{ json('http://localhost:8080/'.toURL(f:f, time:System.currentTimeMillis())) }
* pass arbitrary GET parameters (e.g. file path and current time in this specific example)
* pass back the String value returned by the HTTP request to be used as destination path (server response is JSON in this specific example; but you can modify the code to assume a plain text response)
Re: [POC] Custom Format Server
Posted: 25 Jan 2022, 12:29
by devster
Oh, didn't realize.
But it doesn't seem like FileBot is involved in the remote processing.
This line: const dst = src.toUpperCase().replace(/[^A-Z0-9]/g, '_') is the only piece of code involved in the renaming, right?
I was wondering if it could be made so that FileBot processes the information on the server end (like using an uploaded mediainfo file instead of analyzing the file on disk directly).
Re: [POC] Custom Format Server
Posted: 25 Jan 2022, 12:38
by rednoah
The server-side code above is just a simple example. This particular example upper-cases one of the GET parameters it was sent as input and sends back the result as output. Your server-side code could do anything though, and your client-side can send arbitrary information, file path, media info, current time, etc.
Re: [POC] Custom Format Server
Posted: 31 Jan 2022, 18:34
by devster
To expand a bit on this idea, is there a function or an option to use as source file, instead of a media file present on disk, a MediaInfo xml report?
The idea would be to host a FileBot service on a remote server, upload the MediaInfo report file named as the source file and have FileBot return the correct name.
This would not use the move/copy/keeplink functions of FileBot, the xattr bits (although they could be potentially returned in the response or processed from the source), and it would probably require a separate version of amc.groovy which doesn't check folders or file existence.
Re: Q&A for n00bs
Posted: 09 Apr 2022, 23:07
by Xander
Hi, RedNoah, and thanks for any/all help you can offer here.
The goal is for TV shows to end up in N:\media\tv and movies to end up in n:\media\moviestowatch. Currently, the first line is working fine but, the infrequent time that I've got a movie to be processed, it works sometimes and, when it doesn't, it deletes the file completely. I'd prefer that movies not get their own subfolder but, if they must, that's not the end of the world.
When qbittorrent finishes, it dumps all files into n:\media\videos for processing.
Secondly, I've added the subtitle clause so let me know if I'm doing that wrong. I'd like the movies to always have a subtitle available.
It's in a batch file that does things like delete .nfo/.txt and other housekeeping things.
Code: Select all
"c:\Program Files\FileBot\filebot.exe" -script fn:amc --output "n:/media/tv" --action move -non-strict "n:/media/videos" --log-file amc.log --def excludeList=amc.txt --def seriesFormat="{n}/{n} - {s00e00} - {t}" clean=y kodi=kodi:[email protected]:8081
"c:\Program Files\FileBot\filebot.exe" -script fn:amc --output "n:/media/moviestowatch" --action move -non-strict "n:/media/videos" --log-file amc.log --def excludeList=amc.txt --def subtitles=en --def seriesFormat="{n} ({y}) - {rating}" clean=y kodi=kodi:[email protected]:8081
If this can be done with a single line to cover both types of media, I'd love to learn.
Re: Q&A for n00bs
Posted: 10 Apr 2022, 05:48
by rednoah
Your structure and customizations seem to make things unnecessarily difficult for yourself. I'd just keep things simple.
e.g. recommended usage:
Code: Select all
filebot -script fn:amc --output "N:/Plex" --action duplicate -non-strict "n:/media/videos" --log-file amc.log --def excludeList=amc.txt
* Clearly separate input / output folders, i.e. input folder must not be inside the output folder.
* Stick to the standard
{plex} format, i.e. no custom folder names, no custom formats. The
{plex} format is responsible for the
"TV Shows" and
"Movies" folders. If you choose to use custom formats then your custom format is responsible for generating the parent folder structure within the
--output folder if desired.
Xander wrote: 09 Apr 2022, 23:07
If this can be done with a single line to cover both types of media, I'd love to learn.
This is the default behaviour. If all your files are mixed, then a single
amc script call is your only option. You can have separate
filebot -rename calls
(i.e. not amc script calls) for separately processing movie files and episode files, but for that to make sense your files would have to be separated into folders already, one input folder that only contains movies and one input folder that only contains episodes.

What have you tried so far? Where are you stuck? What did the console output say?

Please read the
amc script manual for details.

You'll want to use the
suball script on demand for fine-grained control over which files get subtitles. The
amc script is a one-size-fits-all solution and thus not suitable if you want subtitles for some files but not others.

If you aim to organize the same files into multiple folder structures for easy access, then you'll want to have one well-organized primary structure, from which you can then auto-generate arbitrary secondary structures on demand. Please read
Re-organize previously organized files using local xattr metadata for details.
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 14 Apr 2022, 14:03
by Robin
Hi rednoah
Is this free license promotion still available if I sent you a recording? I could try it on my QNAP Nas.
Looking for a reply. Thanks in advance.
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 14 Apr 2022, 14:33
by rednoah
Robin wrote: 14 Apr 2022, 14:03
Is this free license promotion still available if I sent you a recording? I could try it on my QNAP Nas.
Yes. Please do.
Re: How about sharing our format expressions?
Posted: 12 Sep 2022, 16:19
by AbedlaPaille
alyssa369 wrote: 04 Mar 2021, 13:11
Looks great. Please let me know how to show folders under some category, (ex. first image). is it a separate magic app or just windows file explorer
Just windows explorer, i created a movie library and added different paths that correspond to the categories i want
https://cdn.discordapp.com/attachments/ ... nknown.png
Re: Q&A for n00bs
Posted: 08 Oct 2022, 01:08
by alittler
This thread may been three years old, but I would feel bad asking such a dumb question in it's own thread: my brain may be broked, but qBittorrent doesn't seem to want to run anything. And for the record, "TV_Shows" is merely the alias to my TV Shows drive; Movies_Other is where movies are kept.
This works fine and dandy in the Linux Terminal, but not out of qBittorrent.
Code: Select all
filebot -script fn:amc --output /mnt/TV_Shows --action duplicate -non-strict /home/alittler/Downloads --def movieFormat=/mnt/Movies_Other/{plex} seriesFormat=/mnt/TV_Shows/{plex} --def plex=192.168.1.123:duhhhhhhhhh --def clean=y --def unsorted=y --log-file amc.log --def excludeList=amc.txt
Thinking I might be misremembering something, I took the AMC script with the output edited, and nothing happened either. The files didn't go anywhere, they weren't copied or anything, and no amc.excludes file. I've checked permissions, I've reinstalled different distros, and installed filebot from different repos, but nothin'.
Code: Select all
filebot -script fn:amc --output "/mnt/TV_Shows" --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=amc.excludes --def unsorted=y music=y artwork=y "ut_label=%L" "ut_title=%N" "ut_kind=multi" "ut_dir=%F"
And despite running this, I cannot find the log file
Code: Select all
find /usr/local/filebot-node/ -name "*.log"
wat do
Re: Q&A for n00bs
Posted: 08 Oct 2022, 04:36
by rednoah

Is
filebot called by qBT? What does the log say when
filebot is called by qBT and doesn't work?

Start by verifying that qBT is actually calling
anything, confirm this, and then modify anything to
filebot and repeat:
viewtopic.php?t=3067

If you call
filebot with
--log-file then the first line of the console output will tell you where the log is. You may want to do
--log-file /absolute/path/to/file to specify exactly where you want the file to go, so you know where the file goes.
Re: Q&A for n00bs
Posted: 13 Oct 2022, 04:19
by alittler
Well, the printenv command works when I add it to my Terminal script, but not when I paste it into qBT. Which I expected, but also blows chunks. I've installed Filebot dozens of times in my attempts organize my completely legal downloading, in uBT, qBT, and my old Synology NAS, and this has never been a problem.
Despite my best attempts, a crontab just don't work as well as running a script on command.
Re: Q&A for n00bs
Posted: 13 Oct 2022, 06:52
by rednoah
If you can't run a simple custom shell script unrelated to
filebot, then you will not be able to run
filebot. Re-installing FileBot has no effect because qBT for some reason seems to just not execute your post-process command.

I recommend checking with qBT users in the qBT forums first and see if they can help you debug qBT and see if you can manage to successfully call a simple custom script. Once you've got that confirmed to be working reliably, then we can move on to calling
filebot.
EDIT:
alittler wrote: 13 Oct 2022, 04:19
printenv command works when I add it to my Terminal script, but not when I paste it into qBT
You seem to be doing something wrong here, because I'd expect you to copy the path to a custom script into qBT, i.e. just a file path:
rednoah wrote: 09 Oct 2015, 16:48
Step-by-Step Instructions for Beginners:
- Download the debug.sh script:
Code: Select all
curl -O "https://raw.githubusercontent.com/filebot/plugins/master/bash/debug.sh"
- Read the debug.sh script and try to understand what it does line by line:
- Make the debug.sh script executable for all users:
- Enter the absolute path to your /path/to/debug.sh script to execute it:
- Read the console output for each test command (e.g. printenv > /tmp/printenv.txt) and confirm that each test command is working:
- Copy the absolute path to your /path/to/debug.sh script into qBT / Deluge / Transmission / etc and wait for it to be called. Then check the /tmp/*.txt text files to see the console output (i.e. error messages) was for each test command.
Re: Q&A for n00bs
Posted: 14 Oct 2022, 08:41
by alittler
Well, it eventually got to work. The issue seems to have been permissions, and using the idea of your debug.sh file, I put my preferred filebot script into a torrent.sh file and made it executable for all users.
I also downloaded about latest Young Sheldon episode about 15,000 times because it was relatively small and had a great amount of seeds.
Thank you kindly, sir.
Re: Q&A for n00bs
Posted: 15 Oct 2022, 00:33
by rednoah
alittler wrote: 14 Oct 2022, 08:41
I also downloaded about latest Young Sheldon episode about 15,000 times
LOL

Re: [DOCS] The movie {tags} and movie {edition} bindings
Posted: 26 Feb 2023, 19:14
by cheaters
For
Plex/Multiple Editions tag... "
[" and "
]" will not be accepted yet they are built into your
tags format. Text in square brackets are ignored.
Plex gives this as the proper format:
/Media
/Movies
Blade Runner (1982) {edition-Director's Cut}.mp4
Blade Runner (1982) {edition-Final Cut}.mp4
I have to use this to make it work with Plex
Code: Select all
{edition-'+tags.toString().replace('[','').replace(']','')+'}'

How to search for "DC" in a filename, coming after a four digit year, and transform that into "Directors Cut" for editions while using plex.id.derive?
Code: Select all
{plex.id.derive{' {edition-'+tags.toString().replace('[','').replace(']','')+'}' }
Re: [SNIPPET] Sort into A-Z folders
Posted: 18 Mar 2023, 13:17
by alittler
How would I sort TV shows, by their first letters, into separate drives? Something like this;
Code: Select all
{
if ({az} = A..L) {
return "/media/alittler/'TV Shows'/{plex}"
} else {
return "/media/alittler/'TV Shows2'/{plex}"
}
}
Ah tell you hwat...
Re: [SNIPPET] Sort into A-Z folders
Posted: 19 Mar 2023, 11:02
by alittler
alittler wrote: 18 Mar 2023, 13:17
How would I sort TV shows, by their first letters, into separate drives? Something like this;
Code: Select all
{
if ({az} = A..L) {
return "/media/alittler/'TV Shows'/{plex}"
} else {
return "/media/alittler/'TV Shows2'/{plex}"
}
}
Ah tell you hwat...
After a few hours of try and try and try again, I think I got it. I just had to search the Forums the same questions in a few different ways
Code: Select all
Movies_Other/" --action duplicate -non-strict --log-file amc.log --def movieFormat="/media/alittler/Movies_Other/{ plex }" seriesFormat="{n =~ /^(?i)[0-9a-r]/ ? '/media/alittler/TV_Shows_1' : n =~ /^(?i)[s-z]/ ? '/media/alittler/TV_Shows_2'}:/{plex}
" excludeList="/media/alittler/Movies_Other/amc.txt
Re: [SNIPPET] Sort into A-Z folders
Posted: 19 Mar 2023, 11:12
by rednoah
e.g.
Code: Select all
{
if (az in 'A'..'L')
return '/path/to/A-L'
if (az in 'M'..'Z')
return '/path/to/M-Z'
return '/path/to/#'
}
/
{plex}
Re: [SNIPPET] Sort into A-Z folders
Posted: 20 Mar 2023, 02:58
by alittler
rednoah wrote: 19 Mar 2023, 11:12
e.g.
Code: Select all
{
if (az in 'A'..'L')
return '/path/to/A-L'
if (az in 'M'..'Z')
return '/path/to/M-Z'
return '/path/to/#'
}
/
{plex}
Thank you kindly. Either I misread the Terminal or something (or it was very, very late) but the command I had just tried didn't quite work, and this is a much simpler version of it.
Re: POSTBUCKET - where random posts in unrelated topics go
Posted: 20 Mar 2023, 03:08
by rednoah
No worries. You had the right ideas. Just need some help with
Groovy syntax for Ranges. I've added an example for this use case to the docs page.
Re: [FAQ] How do I evaluate FileBot?
Posted: 23 Aug 2023, 05:57
by craze1994
Liked how easy it is to use filebot is something I would like to use to rename my media collection.
Re: [FAQ] How do I change the media title property? How do I make Plex display nice titles?
Posted: 11 Sep 2023, 18:36
by Hellreaver
This did nothing for me.
Re: [FAQ] How do I change the media title property? How do I make Plex display nice titles?
Posted: 12 Sep 2023, 05:07
by rednoah
Hellreaver wrote: 11 Sep 2023, 18:36
This did nothing for me.
What did you intend to do? What problem are you trying to solve? What was expected to happen? What happened instead?
Re: [FAQ] How do I change the media title property? How do I make Plex display nice titles?
Posted: 15 Sep 2023, 09:39
by libertygtx
rednoah wrote: 12 Sep 2023, 05:07
Hellreaver wrote: 11 Sep 2023, 18:36
This did nothing for me.
What did you intend to do? What problem are you trying to solve? What was expected to happen? What happened instead?
Hello, I'm having the same issue. Plex is showing file name instead of proper title. I disabled using local assets from library settings and also disabled local assets from Agent settings. No change. Plex still shows "creed.iii.2023.2160p" instead of proper "Creed III" title. The same applies to all my movie and tv series files in the library. What else can I try?
Re: [FAQ] How do I change the media title property? How do I make Plex display nice titles?
Posted: 15 Sep 2023, 11:14
by rednoah
libertygtx wrote: 15 Sep 2023, 09:39
Hello, I'm having the same issue. Plex is showing file name instead of proper title. I disabled using local assets from library settings and also disabled local assets from Agent settings. No change. Plex still shows "creed.iii.2023.2160p" instead of proper "Creed III" title. The same applies to all my movie and tv series files in the library. What else can I try?

Did you rescan & refresh metadata after changing your library settings?

Please confirm that you have set all the settings, and then perform the
Plex Dance to rescan the library from scratch. If you continue to have issues, please ask the Plex experts in the
Plex Forums.
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 17 Oct 2023, 19:14
by Nikolovich
rednoah wrote: 14 Jun 2019, 06:02
As developers, we often don't really know how end-users end up using our tools. Everything is intuitive if you already know how it works, but how about new users? How is the on-boarding experience? What pitfalls are there? How do do various kinds of users interpret and explore the FileBot user-interface? What thoughts do they have?
You may download and evaluate FileBot without having to purchase a license first:
https://www.filebot.net/download.html

If you take a
screen recording of your on-boarding experience, you can earn yourself a
1-year complimentary license. Your assistance is greatly appreciated.

Feel free to think out loud and narrate what you are doing.

Screen recordings can be shared publicly via YouTube, or privately by sharing a Google Drive link via PM.

This offer is also available for seasoned FileBot veterans who would like to provide detailed constructive criticisms for the various more or less intuitive features, and discuss ideas on how to make things work more smoothly.
Hi, I don't know if the offer is still valid but I wanted to use the opportunity to present a bug I encountered when using filebot. In fact, I load the contents from a remote SMB server the first time and everything goes fine. I then try to upload other files but for some reason the remote server crashes and FileBot stops completely, forcing me to force the application to stop... Can I send you a PM with the screen recording?
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 21 Oct 2023, 19:13
by rednoah
Nikolovich wrote: 17 Oct 2023, 19:14
Hi, I don't know if the offer is still valid but I wanted to use the opportunity to present a bug I encountered when using filebot. In fact, I load the contents from a remote SMB server the first time and everything goes fine. I then try to upload other files but for some reason the remote server crashes and FileBot stops completely, forcing me to force the application to stop... Can I send you a PM with the screen recording?
You can upload a screen recording to YouTube and then paste the link.

That said, that sounds a lot like a OS / file system driver / remote file system issue. There likely is nothing that FileBot can do. FileBot may be triggering the bug in the underlying OS / file system driver / remote file system but we probably can't do much to fix it, whatever it may be. A client should not be able to crash the server. That sounds like a severe issue on the server-side.
Re: [FAQ] How can I share screenshots?
Posted: 23 Aug 2024, 16:05
by cyberwasp56
Sorry doesn't work as posted.
Re: [FAQ] How can I share screenshots?
Posted: 23 Aug 2024, 16:07
by rednoah

At which step exactly are you having trouble?

Works as posted as best as I can tell...

Alternatively, you can also use the
Discord Support Channel if you prefer that.
Re: [User Study] Take a screen recording and earn yourself a free license
Posted: 16 Jan 2025, 15:47
by crewockeez
Re: [SNIPPET] Sort into A-Z folders
Posted: 19 Jan 2025, 00:27
by alittler
rednoah wrote: 19 Mar 2023, 11:12
e.g.
Code: Select all
{
if (az in 'A'..'L')
return '/path/to/A-L'
if (az in 'M'..'Z')
return '/path/to/M-Z'
return '/path/to/#'
}
/
{plex}
I lost my torrents.sh file when my drive died (after 8 years) and I just knew I could come back to this thread to find at least most of the script I was using
