Search found 23347 matches
- 27 Jul 2024, 16:18
- Forum: macOS
- Topic: How do I edit the built-in subt
- Replies: 9
- Views: 2756
Re: How do I edit the built-in subt
:idea: The {plex} format already includes the subtitle language and subtitle tags if the file names allow for auto-detection to work. So if your custom code then adds another ".eng" then you will end up with ".eng.eng" . :idea: This code matches this bit: 2_ eng ,English [Forced]...
- 27 Jul 2024, 15:26
- Forum: macOS
- Topic: How do I edit the built-in subt
- Replies: 9
- Views: 2756
Re: How do I edit the built-in subt
You'd add it to your custom format:
https://www.filebot.net/naming.html
I recommend spending ~15min watching all the video tutorials if you're new as this will save you time in the long run:
https://www.filebot.net/tutorials.html
https://www.filebot.net/naming.html
I recommend spending ~15min watching all the video tutorials if you're new as this will save you time in the long run:
https://www.filebot.net/tutorials.html
- 27 Jul 2024, 15:13
- Forum: macOS
- Topic: How do I edit the built-in subt
- Replies: 9
- Views: 2756
Re: How do I edit the built-in subt
Well, this is pretty bad and unusual... 1_eng,English.srt 2_eng,English [Forced].srt 3_eng,English [SDH].srt :arrow: If you all your files follow this pattern, then Match information from the file path is the way to go: { if (f.subtitle) '.' + fn.match(/_([a-z]{3}),/) } { if (f.subtitle) '-' + fn.ma...
- 27 Jul 2024, 13:59
- Forum: macOS
- Topic: How do I edit the built-in subt
- Replies: 9
- Views: 2756
Re: How do I edit the built-in subt
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.
What are you trying to achieve? Feel free to elaborate.
- 27 Jul 2024, 07:04
- Forum: Synology NAS & Embedded Linux
- Topic: generate-app-cds: line 19: Aborted (core dumped)
- Replies: 3
- Views: 2011
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...
- 26 Jul 2024, 04:58
- Forum: Scripting and Automation
- Topic: Linux guru? :)
- Replies: 1
- Views: 1718
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 ...
- 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: 2020
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)
- 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: 2020
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...
- 25 Jul 2024, 04:56
- Forum: Help and Support
- Topic: Can I use a Microsoft Store purchase on Synology NAS?
- Replies: 3
- Views: 1908
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.
- 25 Jul 2024, 04:54
- Forum: Windows
- Topic: How do I organize Wrestling media for Plex?
- Replies: 1
- Views: 1891
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.
In general, please watch the How do I organize files for Plex? video tutorial.
In general, please watch the How do I organize files for Plex? video tutorial.
- 24 Jul 2024, 08:41
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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:
You'll want to check if your regex pattern matches like so:
Format: Select all
{ "12345" ==~ /\d+/ }
- 24 Jul 2024, 03:57
- Forum: Help and Support
- Topic: Can I use a Microsoft Store purchase on Synology NAS?
- Replies: 3
- Views: 1908
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 ...
- 24 Jul 2024, 03:51
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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:
If you use ' or " then Groovy Syntax › 4.3.1. Escaping special characters is relevant:
Groovy: Select all
/\d/
If you use ' or " then Groovy Syntax › 4.3.1. Escaping special characters is relevant:
Groovy: Select all
"\\d"
- 23 Jul 2024, 19:08
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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...
- 23 Jul 2024, 16:52
- Forum: Anything and Everything else
- Topic: Alternative option to buy an application
- Replies: 2
- Views: 1988
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...
- 23 Jul 2024, 07:59
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
Re: How do I read a file into a variable?
Cheers to that!
- 23 Jul 2024, 07:31
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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...
- 23 Jul 2024, 05:41
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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...
- 23 Jul 2024, 05:15
- Forum: Episode / Movie Naming Scheme
- Topic: Read external CSV / TSV / JSON / XML files
- Replies: 0
- Views: 2961
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...
- 23 Jul 2024, 05:08
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
Re: How do I read a file into a variable?
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.
- 23 Jul 2024, 05:04
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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.
- 23 Jul 2024, 05:01
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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...
- 23 Jul 2024, 04:21
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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...
- 23 Jul 2024, 03:16
- Forum: Scripting and Automation
- Topic: How do I read a file into a variable?
- Replies: 21
- Views: 4662
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.
e.g.
rednoah wrote: ↑15 Jul 2012, 09:03Format: 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
- 22 Jul 2024, 14:56
- Forum: macOS
- Topic: extracting part of {folder}
- Replies: 6
- Views: 2284
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.