Search found 20173 matches

by rednoah
Today, 12:03
Forum: Scripting and Automation
Topic: regenerate excludeList (after accidental removal)
Replies: 1
Views: 10

Re: regenerate excludeList (after accidental removal)

Pretty much. It's just a list of file paths. Even just find /volume1/video/ > .excludes should do.


:idea: Here's how filebot itself can do the job:

Code: Select all

filebot -find /volume1/video/ --file-filter "f.video || f.subtitles" > excludes.txt
by rednoah
Today, 05:21
Forum: Windows 10
Topic: Clearing Search Results?
Replies: 6
Views: 159

Re: Clearing Search Results?

I see. The new CTRL+W shortcut is probably nice to have then, but that seems the be the least of your worries. :lol: Here's some extra advice: * Read [Anime] Convert Absolute to SxE numbers thoroughly and create Presets for repetitive use cases. * Use Double-Click ➔ Edit Match and then select multip...
by rednoah
Today, 04:25
Forum: Windows 10
Topic: Clearing Search Results?
Replies: 6
Views: 159

Re: Clearing Search Results?

Sorry, there is no Close All Tabs functionality at this point, other than restarting FileBot. If this request comes up repeatedly, then we'll look into finding a solution. EDIT: :?: Episodes is typically rarely used, and I've never seen anyone open more than one or two tabs. What's your use case or ...
by rednoah
Today, 02:28
Forum: Windows 10
Topic: Clearing Search Results?
Replies: 6
Views: 159

Re: Clearing Search Results?

There's an X button on each tab that you can click to close the tab.
by rednoah
Yesterday, 12:06
Forum: Help and Support
Topic: Trying to rename Forensic Files episodes via the episode title
Replies: 4
Views: 166

Re: Trying to rename Forensic Files episodes via the episode title

If your files are already nicely aligned, then I'd do a Linear Rename to rename the files / episodes in natural order: $ filebot -list --db TheTVDB --q "Forensic Files" --filter "s == 9" --format "{plex.name}" -rename *s09*.mp4 --action TEST --log INFO [TEST] from [Forensic Files 2005 - s09e01 - Roa...
by rednoah
20 Oct 2021, 16:46
Forum: Scripting and Automation
Topic: Strip brackets [...] from the file path
Replies: 0
Views: 109

Strip brackets [...] from the file path

GUI: use Plain File Mode with custom plain file format: { folder.path.removeAll(/\[.+?\]/) }/{ fn.removeAll(/\[.+?\]/) } fn ... file name without extension folder.path ... parent folder file path /\[.+?\]/ ... regular expression that matches [...] patterns CLI: use --db file to rewrite file paths: f...
by rednoah
20 Oct 2021, 15:05
Forum: Scripting and Automation
Topic: Custom code to guess media source based on file size and video bit rate
Replies: 6
Views: 223

Re: Custom code to guess media source based on file size and video bit rate

Why unnecessarily duplicate large swathes of code when just want to add an extra condition? :roll: { if (hd == 'SD') if (bytes.MB >= 700 && bitrate.mbps >= 1.1) return 'DVDRip' else return 'TVRip' if (hd == 'HD') if (bytes.MB >= 100 && bitrate.mbps >= 18) return 'BDRemux' else if (bitrate.mbps >= 8)...
by rednoah
20 Oct 2021, 12:26
Forum: Episode / Movie Naming Scheme
Topic: Guess source media based on resolution, bitrate and file size
Replies: 0
Views: 97

Guess source media based on resolution, bitrate and file size

Return different values based on {hd} , {bytes} and {bitrate} : { if (hd == 'SD') if (bytes.MB >= 700 && bitrate.mbps >= 1.1) return 'DVDRip' else return 'TVRip' if (hd == 'HD') if (bytes.GB >= 1 && bitrate.mbps >= 18) return 'BDRemux' else if (bitrate.mbps >= 8) return 'BDRip' else if (bitrate.mbps...
by rednoah
20 Oct 2021, 12:14
Forum: Scripting and Automation
Topic: Custom code to guess media source based on file size and video bit rate
Replies: 6
Views: 223

Re: Custom code to guess media source based on file size and video bit rate

I'd rewrite the code in a more human-readable manner like so: { if (hd == 'SD') if (bytes.MB >= 700 && bitrate.mbps >= 1.1) return 'DVDRip' else return 'TVRip' if (hd == 'HD') if (bytes.GB >= 1 && bitrate.mbps >= 18) return 'BDRemux' else if (bitrate.mbps >= 8) return 'BDRip' else if (bitrate.mbps >...
by rednoah
20 Oct 2021, 12:11
Forum: Scripting and Automation
Topic: Custom code to guess media source based on file size and video bit rate
Replies: 6
Views: 223

Re: I'm doing something wrong

{bytes} and {bitrate} are no longer simple Number objects, so you might need to update your custom format a little bit. See linked post for details: https://www.filebot.net/forums/viewtopic.php?p=55485#p55485 :!: Note that your format is also syntactically incorrect, which is unrelated to {bytes} a...
by rednoah
20 Oct 2021, 04:26
Forum: Ubuntu & Linux
Topic: Can't start filebot-xpra docker container
Replies: 1
Views: 107

Re: Can't start filebot-xpra docker container

This is probably the key error message: xpra initialization error: invalid port number: 5454,auth=none The String value "5454,auth=none" is indeed not a port number. But the exact same command-line works for everyone else, at least on amd64 arch. Perhaps aarch64 packages an old version of xpra where...
by rednoah
20 Oct 2021, 02:50
Forum: Ubuntu & Linux
Topic: [FileBot Node] --optimize_for_size causes Bus error (core dumped) crash
Replies: 5
Views: 537

Re: Can't start filebot-node docker

Fixed. I'm not attached to that particular option. Thank you for tracking down the problem and finding a workaround.

https://github.com/filebot/filebot-dock ... 8c34fc1130
by rednoah
19 Oct 2021, 03:22
Forum: Ubuntu & Linux
Topic: [FileBot Node] --optimize_for_size causes Bus error (core dumped) crash
Replies: 5
Views: 537

Re: Can't start filebot-node docker

I guess that means that the node executable crashes: Bus error (core dumped) I guess the amd64 arch container works, and the aarch64 container doesn't, but googling Bus error (core dumped) didn't reveal anything. You could try with a custom dockerfile and replace the nodejs binary from the Ubuntu pa...
by rednoah
18 Oct 2021, 08:59
Forum: Ubuntu & Linux
Topic: [FileBot Node] --optimize_for_size causes Bus error (core dumped) crash
Replies: 5
Views: 537

Re: Can't start filebot-node docker

You could use docker exec to run bash then then execute the ENTRYPOINT command manually from there: https://github.com/filebot/filebot-docker/blob/master/Dockerfile.node#L40 :idea: If nothing makes sense, make sure to clear all the docker images you have cached, to make sure you're running the very ...
by rednoah
18 Oct 2021, 06:27
Forum: Ubuntu & Linux
Topic: Docker changes?
Replies: 3
Views: 350

Re: Docker changes?

The latest changes will respect your PUID and PGID environment variables, and run filebot as normal user. :idea: You can use PUID=0 to run as root to restore the previous run-everything-as-root default behaviour instead of the new run-as-PUID-user by default behaviour: https://github.com/filebot/fil...
by rednoah
18 Oct 2021, 06:03
Forum: Scripting and Automation
Topic: Using mapper to fix episode number
Replies: 5
Views: 513

Re: Using mapper to fix episode number

Note that you will find Linear Rename more straight-forward for this particular use case: $ filebot -list -rename *.mp4 --db TheTVDB --q 311711 --filter "s == 2" --action TEST --log INFO [TEST] from [My.Show.S02E01E02.mp4] to [The Good Place - 2x01 - Everything Is Great!.mp4] [TEST] from [My.Show.S0...
by rednoah
18 Oct 2021, 05:47
Forum: Scripting and Automation
Topic: Using mapper to fix episode number
Replies: 5
Views: 513

Re: Using mapper to fix episode number

$ filebot -rename "The Good Place - 3x02.mp4" --q 311711 --db TheTVDB -non-strict --action TEST --filter regular --mapper "episode.number(s, e + 1)" * Consider using --mode interactive to enable interactive mode ... Apply mapper [episode.number(s, e + 1)] on [50] episodes ... Map [The Good Place - ...
by rednoah
18 Oct 2021, 05:12
Forum: Scripting and Automation
Topic: Using mapper to fix episode number
Replies: 5
Views: 513

Re: Using mapper to fix episode number

you can use this https://www.filebot.net/forums/viewtopic.php?p=18802#p18802 This custom script from 2016 is just a generic file rename script, the kind that you could easily write yourself in your favorite scripting language. It predates Plain File Mode so it's probably not the most straight-forwa...
by rednoah
18 Oct 2021, 03:59
Forum: Feature Requests and Bug Reports
Topic: filebot -script fn:history no longer working --SOLVED
Replies: 3
Views: 443

Re: filebot -script fn:history no longer working --SOLVED

Ah, yes! That explains things! If you set system properties directly, then that will bypass all the sanity checks of the command-line parser and then the error message above make sense!


EDIT:

FileBot r8885 will now gracefully catch errors that occur during logging initialization.
by rednoah
18 Oct 2021, 03:11
Forum: Synology & QNAP & Embedded Linux
Topic: Kodi 16.1 and the tvshow.nfo
Replies: 15
Views: 6487

Re: Kodi 16.1 and the tvshow.nfo

https://kodi.wiki/view/Add-on:The_TVDB_(new) use new simple way (same as id) e.g. <episodeguide>75978</episodeguide> <id>75978</id> Yep, that makes much more sense, we can work with that: https://github.com/filebot/scripts/commit/6b9dbf21f98ea3026cc86b9244e945f002dfa2fa :!: Since TheTVDB will drop ...
by rednoah
18 Oct 2021, 02:59
Forum: Feature Requests and Bug Reports
Topic: filebot -script fn:history no longer working --SOLVED
Replies: 3
Views: 443

Re: filebot -script fn:history no longer working --SOLVED

The error messages above indicate that something strange is going on, as if FileBot can't access its own application data files for some reason. If it randomly starts and stops working, then there's probably some macOS strangeness to blame. The *.app bundle itself is self-contained and doesn't use (...
by rednoah
17 Oct 2021, 13:16
Forum: Help and Support
Topic: IllegalArgumentException: --action COPY not in [MOVE, COPY, ...]
Replies: 5
Views: 2291

Re: IllegalArgumentException: --action COPY not in [MOVE, COPY, ...]

It's just amc script arguments. It's just filebot command-line usage. There's nothing specific to docker or docker compose. :idea: If your format generates a relative path, then that relative path is resolved relatively to the output folder --output /output --format {ny}/{ny} /output/Avatar (2009)/A...
by rednoah
17 Oct 2021, 04:51
Forum: Windows 10
Topic: Issues Getting AMC Script Working Again
Replies: 9
Views: 851

Re: Issues Getting AMC Script Working Again

Cheers. From here on out you can easily make your customizations (e.g. --def plex) step by step. Make sure it works before the change. Make the change. Make sure it still works after the change. Rinse and repeat. It might seem cumbersome but it's actually very effective.
by rednoah
17 Oct 2021, 04:14
Forum: Windows 10
Topic: Issues Getting AMC Script Working Again
Replies: 9
Views: 851

Re: Issues Getting AMC Script Working Again

In any case, filebot likely works, you just didn't follow the qBT instructions: https://www.filebot.net/forums/viewtopic.php?p=9774#p9774 Step 1: Copy the qBT command template example: filebot -script fn:amc --output "X:/Media" --action duplicate --conflict skip -non-strict --log-file amc.log --def ...