Search found 23244 matches

by rednoah
55 minutes ago
Forum: macOS
Topic: How do I edit the built-in subt
Replies: 2
Views: 31

Re: How do I edit the built-in subt

:idea: Built-in bindings such as {lang} and {subt} subtitle language tag cannot be edited. You can however just not use built-in binding and write your own code instead.


:?: What are you trying to achieve? Feel free to elaborate.
by rednoah
Today, 07:04
Forum: Synology NAS & Embedded Linux
Topic: generate-app-cds: line 19: Aborted (core dumped)
Replies: 1
Views: 100

Re: Runing Filebot on Synology NAS

I notice I always get this core dump error: /var/packages/filebot/target/jsa/generate-app-cds: line 19: 12729 Aborted (core dumped) java -Xshare:dump -XX:SharedClassListFile="$CDS_ARCHIVE.lst" -XX:SharedArchiveFile="$CDS_ARCHIVE" -jar "$CDS_CLASSPATH" > "$CDS_ARCH...
by rednoah
Yesterday, 04:58
Forum: Scripting and Automation
Topic: Linux guru? :)
Replies: 1
Views: 161

Re: Linux guru? :)

$ [ ut_label=FILM ] $ echo $? 0 :!: [ ut_label=FILM ] is always 0 because you're effectively doing a "check if variable has a value" test (e.g. [ "$TERM" ] ) except with a surely defined value and not a variable. :idea: Unrelated to that, ut_label is not a variable in the first ...
by rednoah
25 Jul 2024, 14:45
Forum: macOS
Topic: Why do I keep getting the License Required even though I already have a license?
Replies: 3
Views: 266

Re: Why do I keep getting the License Required even though I already have a license?

:?: Are you holding the SHIFT or ALT modifier key on your keyboard while clicking the Rename button by any chance? (NOTE: Holding the SHIFT key while pressing the Rename button allows you to force the license popup)
by rednoah
25 Jul 2024, 05:00
Forum: macOS
Topic: Why do I keep getting the License Required even though I already have a license?
Replies: 3
Views: 266

Re: License Required

:?: Which version of FileBot are you using? (NOTE: The screenshot above might suggest that you're using a very outdated version of FileBot) :?: Are you holding the SHIFT or ALT modifier key on your keyboard while clicking the Rename button by any chance? (NOTE: Holding the SHIFT key while pressing t...
by rednoah
25 Jul 2024, 04:56
Forum: Help and Support
Topic: Can I use a Microsoft Store purchase on Synology NAS?
Replies: 3
Views: 232

Re: Can I use a Microsoft Store purchase on Synology NAS?

A one-time / one-year free complimentary license has been sent to your email address.
by rednoah
25 Jul 2024, 04:54
Forum: Windows
Topic: How do I organize Wrestling media for Plex?
Replies: 1
Views: 247

Re: I have a question about FileBot

:?: Specifically, all depends on your files. Please post screenshots and sample file paths as text. See How to Request Help for details.


:arrow: In general, please watch the How do I organize files for Plex? video tutorial.
by rednoah
24 Jul 2024, 08:41
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

If you're testing in the format editor then you are confusing the actual value with the display file path.

You'll want to check if your regex pattern matches like so:

Format: Select all

{ "12345" ==~ /\d+/ }
by rednoah
24 Jul 2024, 03:57
Forum: Help and Support
Topic: Can I use a Microsoft Store purchase on Synology NAS?
Replies: 3
Views: 232

Re: license

Unfortunately, Microsoft Store / Mac App Store purchases do not include a standalone universal license. See FileBot Pricing Explained for details: Microsoft Store and Mac App Store purchases are not interchangeable and cannot be converted to a universal life-time license. Please avoid the Microsoft ...
by rednoah
24 Jul 2024, 03:51
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

If you use Groovy Syntax › 4.6. Slashy string then you don't need to escape \ characters:

Groovy: Select all

/\d/

If you use ' or " then Groovy Syntax › 4.3.1. Escaping special characters is relevant:

Groovy: Select all

"\\d"
by rednoah
23 Jul 2024, 19:08
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

I need it to remain a "\." :?: Why? What are you trying to achieve? :!: / and \ cannot not be used as path separator in a file path. / and \ are notably interchangeable. You can do /. or \. and on Unix that would refer to the file system root, but on Windows it's just an invalid file path...
by rednoah
23 Jul 2024, 16:52
Forum: Anything and Everything else
Topic: Alternative option to buy an application
Replies: 2
Views: 244

Re: Alternative option to buy an application

Paddle does support all the usual international payment methods (Credit Card, PayPal, Apple Pay, Google Pay, etc) but if you need payment methods specific to Belarus / Russia / any other single country then you're probably out of luck. :idea: Purchase FileBot with Crypto Currency is an option of las...
by rednoah
23 Jul 2024, 07:31
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

If it's just about sharing data, then csv() json() and friends will work best, but if you also need to share code / logic (in addition to the data that code is working with) then the How can I use the same format in both GUI and CLI? is of course the way to go. :idea: The @lines (compile-time pre-p...
by rednoah
23 Jul 2024, 05:41
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

So value.stripReleaseInfo() won't work, and need to pass a parameter? Yep, must pass a parameter: { '[ONe]_Ano_Hana_01_(1280x720)'.stripReleaseInfo(false) } That said, you're probably looking for the clean() method: { '[ONe]_Ano_Hana_01_(1280x720)'.clean() } Doesn't that make it more complicated wi...
by rednoah
23 Jul 2024, 05:15
Forum: Episode / Movie Naming Scheme
Topic: Read external CSV / TSV / JSON / XML files
Replies: 0
Views: 348

Read external CSV / TSV / JSON / XML files

Read CSV / TSV table Read a lookup table from an external CSV or TSV file: csv('/path/to/table.tsv') e.g. use custom series names { def map = csv('/path/to/table.tsv') n.replace(map) } $ cat ~/table.tsv Deep Space 9 DS9 How I Met Your Mother HIMYM Read lines of text Read lines from a text file: lin...
by rednoah
23 Jul 2024, 05:08
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

Wolfie wrote: 23 Jul 2024, 05:02

Format: Select all

def configs=include "P:/FileBot/config.groovy"
If you're using include() just to create a structured data object for your configuration, then you definitely want to use json() (and convert your configuration file to JSON syntax) instead for this particular use case.
by rednoah
23 Jul 2024, 05:04
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

String.stripReleaseInfo(boolean strict) does exist. There is no parameterless method of that name though.
by rednoah
23 Jul 2024, 05:01
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

Split code into external *.groovy script files › External format @lines are FileBot-specific preprocessor instructions, i.e. you're effectively copy & pasting text files together, before passing the result as a whole to the Groovy compiler / interpreter that is completely unaware how the code c...
by rednoah
23 Jul 2024, 04:21
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: How do I read a file into a variable?

:idea: The file path / file extension does not matter. But the file must be a tab-separated / comma-separated / pipe-separated / semicolon-separated / etc text file. :idea: If you're reading in a complex configuration file (i.e. nested structure, values, lists, maps, etc) then you could use the json...
by rednoah
23 Jul 2024, 03:16
Forum: Scripting and Automation
Topic: How do I read a file into a variable?
Replies: 21
Views: 727

Re: I got a new one for ya BlueNoah

You can use the csv() function to read a CSV / TSV file into a Map object.

e.g.
rednoah wrote: 15 Jul 2012, 09:03

Format: Select all

{
	def table = csv('/path/to/names.tsv')
	table[n] ?: n
}

Console Output: Select all

$ cat ~/names.tsv
Deep Space 9	DS9
How I Met Your Mother	HIMYM

Screenshot
by rednoah
22 Jul 2024, 14:56
Forum: macOS
Topic: extracting part of {folder}
Replies: 6
Views: 485

Re: extracting part of {folder}

File.getAt() will give you the n-th path component. f[-2] is Groovy syntax for calling that method. -2 means 2nd element counting from the end. f[-2] is thus the same as f.dir.name and folder.name.
by rednoah
22 Jul 2024, 11:09
Forum: macOS
Topic: extracting part of {folder}
Replies: 6
Views: 485

Re: extracting part of {folder}

:arrow: FileBot Groovy Expression Reference Documentation would be the entrance to the rabbit hole.


:idea: f.path is Groovy syntax for calling the File.getPath() function.
by rednoah
22 Jul 2024, 04:50
Forum: macOS
Topic: extracting part of {folder}
Replies: 6
Views: 485

Re: extracting part of {folder}

:idea: f.path will give you the entire file path.

:idea: folder.path will give you the folder path.

:idea: folder.name will give you the folder name.

:idea: You can do f.dir.name, f.dir.dir.name, f[0] , f[-2], etc to get individual path components.
by rednoah
22 Jul 2024, 04:20
Forum: Ubuntu & Desktop Linux
Topic: Have .filepart when amc script is copying movie to another directory?
Replies: 2
Views: 445

Re: AMC -copy

:idea: Processing files instantly within the same file system using hardlinks is most strongly recommended. You can then use other tools such as rsync to sync things to remote machines as needed. :idea: That said, you can have your own Custom Rename Action › Shell Actions if you must move files to a...