Search found 380 matches

by devster
Today, 20:41
Forum: Feature Requests and Bug Reports
Topic: Custom databases via --db db.groovy
Replies: 2
Views: 238

Re: Custom databases via --db db.groovy

I've seen quite a few posts requesting niche databases to be added, like SetList.fm, something for books, comics, and alternative TV/movie DBs. I realise adding support for all would be completely unfeasible, but would a pluggable DB be feasible? Scripts would just have to perform requests to an API...
by devster
01 Jun 2020, 23:40
Forum: Scripting and Automation
Topic: Web Sources
Replies: 13
Views: 1047

Re: Web Sources

Sorry, no clue as to why, you'll probably have to debug on your machine. The following: { def isWeb = true def lfr if (isWeb) { lfr = 'hi' } } works, so it's likely something with the file or the regex or something else. As a suggestion you can use lfr = any{fn.match(/($websources)\.(?i)WEB/)}{null}...
by devster
01 Jun 2020, 18:34
Forum: Scripting and Automation
Topic: Web Sources
Replies: 13
Views: 1047

Re: Web Sources

Yes, new versions highlighted some issues in my code, you need to change the following line:

Code: Select all

        def lfr = { if (isWeb) fn.match(/($websources)\.(?i)WEB/) } // logo free release
with something like:

Code: Select all

def lfr
if (isWeb) {
        lfr = fn.match(/($websources)\.(?i)WEB/)
}
or similar.
by devster
23 May 2020, 20:47
Forum: Ubuntu & Linux
Topic: Matching "Upload" with TheMovieDB
Replies: 4
Views: 103

Re: Matching "Upload" with TheMovieDB

Seems caused by https://github.com/filebot/data/blob/ma ... t.txt#L359
Any way to work around it?
by devster
23 May 2020, 20:38
Forum: Feature Requests and Bug Reports
Topic: Show if target directory already exists
Replies: 5
Views: 80

Re: Show if target directory already exists

The duplicates script could also be an option, I believe it matches with extended attrs, not file names, so it would likely flag duplicates if both files were processed using FileBot even with different extensions/quality.
by devster
18 May 2020, 17:11
Forum: Episode / Movie Naming Scheme
Topic: Source Media {vs} and {source}
Replies: 4
Views: 8169

Re: Source Media {vs} and {source}

Not quite, I want BluRay and HDTV from {vs}, but I do my own matching for anything WEB.*
Hence the difference.
I'm currently doing:

Code: Select all

String src
if (['BluRay', 'HDTV'].contains(vs) {
  src = vs
} else {
  src = source
} 
just wondering if there's a better way.
by devster
18 May 2020, 15:16
Forum: Episode / Movie Naming Scheme
Topic: Source Media {vs} and {source}
Replies: 4
Views: 8169

Re: Source Media {vs} and {source}

Is source now an exact match for case as well? It seems that the following happens: fn: aaaaa.s01e01.hdtv.mkv => nice name - S01E01 - hdtv.mkv fn: aaaaa.s01e01.HDTV.mkv => nice name - S01E01 - HDTV.mkv As a corollary, how could I get the same behaviour as before (capital HDTV on non-capital match) o...
by devster
17 May 2020, 15:01
Forum: Windows 10
Topic: VPN: Cloudflare Captcha breaking filebot
Replies: 5
Views: 94

Re: VPN: Cloudflare Captcha breaking filebot

I have found similar issues when using VPN on my browser, in some cases it seems CloudFlare is prompting captchas depending on source IP and not destination IP, which means that if FileBot is using the VPN it may encounter the issue. However there should the option to download movies.txt.xz locally ...
by devster
16 May 2020, 19:53
Forum: Scripting and Automation
Topic: automating foreign and kids movies
Replies: 5
Views: 147

Re: automating foreign and kids movies

In addition to Kim's suggestion you could look at PG rating of a movie and filter by that. You probably don't need custom scripts to do what you mentioned as FileBot already has genre and certification as binding, but you'd be relying on The Movie DB, not IMDb. For languages you can get original lan...
by devster
16 May 2020, 16:53
Forum: Feature Requests and Bug Reports
Topic: StackOverflowError on upgrade to 4.9.1
Replies: 4
Views: 110

Re: StackOverflowError on upgrade to 4.9.1

Perfect, thank you, I also fixed the following:

Code: Select all

        def lfr = { if (isWeb) fn.match(/($websources)\.(?i)WEB/) }
which was not running anymore with:

Code: Select all

        String lfr
        if (isWeb) {
          lfr = fn.match(/($websources)\.(?i)WEB/)
        }
by devster
16 May 2020, 16:28
Forum: Feature Requests and Bug Reports
Topic: StackOverflowError on upgrade to 4.9.1
Replies: 4
Views: 110

Re: StackOverflowError on upgrade to 4.9.1

Ok, this is the problem code then: { def last = n.tokenize(" ").last() /* def _tags = (tags != null) ? tags : null */ def _tags = call{tags} if (_tags) { _tags.removeIf { it ==~ /(?i:imax)/ } } specials = allOf { _tags } { fn.after(/(?i:$last)/).findAll(/(?i)(alternate|first)[ ._-]cut|limited|hybrid...
by devster
16 May 2020, 14:18
Forum: Feature Requests and Bug Reports
Topic: StackOverflowError on upgrade to 4.9.1
Replies: 4
Views: 110

StackOverflowError on upgrade to 4.9.1

I'm coming from 4.8.5, where the issue isn't present. Upon running the following: filebot -script fn:amc --action test --output /cephfs/Media/ --def [email protected]/scripts/movieFormat.groovy --def [email protected]/scripts/seriesFormat.groovy --def [email protected]/scripts/animeFormat.groovy /preprocess/mo...
by devster
05 May 2020, 19:28
Forum: Feature Requests and Bug Reports
Topic: [Suggestion] Java version support
Replies: 5
Views: 420

Re: [Suggestion] Java version support

Thanks v11 is perfectly alright.
by devster
05 May 2020, 09:57
Forum: Feature Requests and Bug Reports
Topic: [Suggestion] Java version support
Replies: 5
Views: 420

[Suggestion] Java version support

I was planning the update to 4.9.1, mainly for the anime and dual-db features, but I'm struggling a bit to find minimum supported Java release. I'm on Ubuntu which has openjdk-11 as a package, is that enough or should I go for 13/14? Also I would suggest adding that in the release posts, would make ...
by devster
09 Apr 2020, 12:35
Forum: Ubuntu & Linux
Topic: how can i discard accents?
Replies: 19
Views: 945

Re: how can i discard accents?

For posterity, I believe you can use the Java unicode block pattern match to remove accents. R0=".removeAll(/\p{InLatin-1Supplement}/) Docs here https://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#ubc and https://www.compart.com/en/unicode/block/U+0080 the block reference for Lati...
by devster
03 Apr 2020, 07:49
Forum: Ubuntu & Linux
Topic: How to Force FileBot to update Sonarr/Radarr
Replies: 4
Views: 488

Re: How to Force FileBot to update Sonarr/Radarr

I believe you can use the second script you mentioned as exec argument and use variables to pass the series name.
Something like

Code: Select all

--def exec="/path/to/myscript.sh {n}"
and in the second script add a line like

Code: Select all

seriesName=${1}
by devster
02 Apr 2020, 18:28
Forum: Ubuntu & Linux
Topic: File does not exist
Replies: 2
Views: 405

Re: File does not exist

You quoted the file name in the first command but not in the second, the backslashes are literal in the first one, but not in the second.
by devster
02 Apr 2020, 07:57
Forum: Episode / Movie Naming Scheme
Topic: Release Groups {group}
Replies: 485
Views: 961713

Re: Release Groups {group}

LiNG
by devster
31 Mar 2020, 09:45
Forum: Feature Requests and Bug Reports
Topic: Issue with Sonic The Hedgehog
Replies: 1
Views: 286

Issue with Sonic The Hedgehog

I recently tried renaming the new Sonic The Hedgehog movie. Using the GUI i found a weird issue: https://dsc.cloud/d38828/Screen-Shot-2020-03-31-11-43-26.png Except this movie does not have Martin Scorsese as director and the TheMovieDB page does not contain this info anywhere https://www.themoviedb...
by devster
28 Mar 2020, 17:27
Forum: Feature Requests and Bug Reports
Topic: Custom databases via --db db.groovy
Replies: 2
Views: 238

Custom databases via --db db.groovy

Is it currently possible or would it be feasible to have *.groovy files as arguments to the --db option?
This would make the database support easier to extend (e.g. I'm interested in IMVDb which is niche but has an official API).
by devster
26 Mar 2020, 16:41
Forum: Episode / Movie Naming Scheme
Topic: Release Groups {group}
Replies: 485
Views: 961713

Re: Release Groups {group}

TEPES, maybe already there?
by devster
18 Mar 2020, 11:43
Forum: Feature Requests and Bug Reports
Topic: MacOS vs Linux discrepancy
Replies: 5
Views: 598

Re: MacOS vs Linux discrepancy

It doesn't seem like any of the bindings are undefined, it's the combination that fails. This was the problematic bit: { public static String surround(String self, Character left = "(", Character right = ")") { return left + self + right } n.surround() } which fails on Linux: No signature of method:...
by devster
18 Mar 2020, 09:08
Forum: Feature Requests and Bug Reports
Topic: MacOS vs Linux discrepancy
Replies: 5
Views: 598

Re: MacOS vs Linux discrepancy

I can only guess which ones don't work as they don't throw errors on MacOS, neither individually nor using the entire format. What is missing is the following: { def norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'") .replaceAll(/[|]/, " - ") .replaceAll(/[?]/, "\uFE56") .replaceAll(/[*\p{Zs}]+/, " ") .repl...
by devster
18 Mar 2020, 00:06
Forum: Feature Requests and Bug Reports
Topic: MacOS vs Linux discrepancy
Replies: 5
Views: 598

MacOS vs Linux discrepancy

I'm testing the recent 4.9.0 release. I have a fairly complex format: { def norm = { it.replaceAll(/[`´‘’ʻ""“”]/, "'") .replaceAll(/[|]/, " - ") .replaceAll(/[?]/, "\uFE56") .replaceAll(/[*\p{Zs}]+/, " ") .replaceAll(/\b[IiVvXx]+\b/, { it.upper() }) .replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower()...