Search found 68 matches

by rv23
03 Aug 2024, 21:07
Forum: Scripting and Automation
Topic: 5.1.1 to 5.1.4 changed how include() works, what now?
Replies: 5
Views: 8166

Re: 5.1.1 to 5.1.4 changed how include() works, what now?

ha ha .. Well that's both silly and a simple enough fix.
This no longer works

Groovy: Select all

include('lib/imdb')
This however does work

Groovy: Select all

include('lib/imdb.groovy')
Well .. okay, I can just spell out the full filename no problem..
by rv23
03 Aug 2024, 21:05
Forum: Scripting and Automation
Topic: 5.1.1 to 5.1.4 changed how include() works, what now?
Replies: 5
Views: 8166

Re: 5.1.1 to 5.1.4 changed how include() works, what now?

I just tested it with 5.1.2, that's when this no longer works.
by rv23
03 Aug 2024, 21:02
Forum: Scripting and Automation
Topic: 5.1.1 to 5.1.4 changed how include() works, what now?
Replies: 5
Views: 8166

Re: 5.1.1 to 5.1.4 changed how include() works, what now?

I'm running Windows 11 Here is a simple script which I'm running in a pwsh session using filebot -script .\test_include_5_1_x.groovy Here is the script include('lib/imdb') Here is the imdb.groovy file (located in the lib subfolder) package lib //--- VERSION 1.0.0 and the stacktrace again .. PS C ...
by rv23
03 Aug 2024, 16:07
Forum: Scripting and Automation
Topic: 5.1.1 to 5.1.4 changed how include() works, what now?
Replies: 5
Views: 8166

5.1.1 to 5.1.4 changed how include() works, what now?

My scripts have used include() since 4.x, and on 5.1.1 work fine, but on 5.1.4 I now get this error: General error during instruction selection: Illegal script class: lib.__script_40d3cf174f7523b1087cd0f6148bd68b net.filebot.InvalidInputException: Illegal script class: lib.__script ...
by rv23
02 Dec 2021, 21:15
Forum: Help and Support
Topic: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!
Replies: 7
Views: 10817

Re: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!

Good question .. I totally forgot you can use the any {} with the mapper option, I'll have to update that specific case to something that in theory should at least not cause filebot to throw out an error. I had expected that if the mapper couldn't be used for an episode (or special in this case), it ...
by rv23
25 Nov 2021, 15:44
Forum: Help and Support
Topic: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!
Replies: 7
Views: 10817

Re: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!

You are correct, the error I am getting is not related to AniDB, but a "filebot" error :) Map [Focus T25 - Special 1 - Stretch] to [...] failed: net.filebot.format.BindingException: Binding "e": undefined renameWrapper() - Caught error:[net.filebot.cli.CmdlineException: Syntax Error: net.filebot ...
by rv23
15 Nov 2021, 13:13
Forum: Help and Support
Topic: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!
Replies: 7
Views: 10817

Re: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!

re: Catch block: It was catching *something*, or I expect I wouldn't have seen the messages in my script output for the AniDB Ban. Re: Caching hmm... Your right that I should have been saving the actual exception messages as well, so I will add some additional output to my script and see if I can at ...
by rv23
13 Nov 2021, 20:21
Forum: Scripting and Automation
Topic: Mapping AniDB numbers to TheTVDB numbers doesn't always work
Replies: 4
Views: 10308

Re: Mapping AniDB numbers to TheTVDB numbers doesn't always work

As @rednoah has mentioned, sometimes when using a particular DB-to-DB Mapping you might not get a value, one possible way to deal with this is to use the { any { expression1 } {expression2} } in your format code, with your expressions in order of preference. In general as long as one of them works ...
by rv23
13 Nov 2021, 18:36
Forum: Help and Support
Topic: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!
Replies: 7
Views: 10817

Re: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!

oh, I didn't include how I "know" if I've been banned by AniDB. I am using this try/catch block.. try { rfsTemp = rename(*:wrapperArgs) if (rfsTemp) { rfs += rfsTemp } } catch (Exception IllegalStateException) { println 'AniDB BanHammer Detected. Please stop hitting AniDB for at least 24 hours ...
by rv23
13 Nov 2021, 15:40
Forum: Help and Support
Topic: HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!
Replies: 7
Views: 10817

HELP: Filebot 4.9.4 AniDB Caching different from 4.9.3 for Groovy Script!

I switched my extensive Anime renaming script from 4.9.3 r8311 to 4.9.4 r8736 and the # of times I am banned by AniDB has significantly increased. With 4.9.4 r8736 I got banned 19 times out of 76 runs over 3 months. with 4.9.3 r8311 I got banned 0 times out of 146 runs over 6 months. As there are ...
by rv23
07 Aug 2021, 20:38
Forum: Scripting and Automation
Topic: Is the input folder(s) value saved for reference in filebot -script?
Replies: 2
Views: 5434

Re: Is the input folder(s) value saved for reference in filebot -script?

Ah that's it. I normally run my script using -r (recursive), which looks to transform args to the list of files. I had some scripts that I run without -r, and was using args[x] to get the input folder.. I was slow to figure out what was the difference between the scripts, and finally realized it was ...
by rv23
07 Aug 2021, 14:37
Forum: Scripting and Automation
Topic: Is the input folder(s) value saved for reference in filebot -script?
Replies: 2
Views: 5434

Is the input folder(s) value saved for reference in filebot -script?

Is there an easy/simple way to reference the input directory(s) specified on the command line within a script run using filebot -script? For example: filebot -script myscript.groovy --action move Z:\some\directory -output z:\some\other\directory Is there an easy way to find out the input directory(s ...
by rv23
06 Jul 2021, 13:51
Forum: Scripting and Automation
Topic: How can I use a variable from one include() script in another include() script?
Replies: 8
Views: 14526

Re: How can I use a variable from one include() script in another include() script?

@Kim - Your spot on, it looks like the best available option is to use a method to return the values, either as a single method/value or single method returning map. I lack the necessary expertise and knowledge to say for certain what *might* work, I can say that I didn't find an option that worked ...
by rv23
04 Jul 2021, 15:48
Forum: Scripting and Automation
Topic: How can I use a variable from one include() script in another include() script?
Replies: 8
Views: 14526

Re: How can I use a variable from one include() script in another include() script?

@kim - Thanks for the SO link, I'll poke at that a bit and search for some other groovy alternatives to the native import statement. Your idea is good and mirrors what I have found out when using filebot --script to run groovy scripts, however that seems to only work for variables you declare in the ...
by rv23
03 Jul 2021, 15:23
Forum: Scripting and Automation
Topic: How can I use a variable from one include() script in another include() script?
Replies: 8
Views: 14526

How can I use a variable from one include() script in another include() script?

I am using filebot's include() method to source several "libraries", which are groovy scripts (not classes) in a groovy script executed using filebot --script <script>. I have several libraries, and multiple methods within those libraries. in my main script I use include() to source the "library ...
by rv23
05 Jun 2021, 19:44
Forum: Feature Requests and Bug Reports
Topic: FEATURE REQUEST: User defined dataset for mapping to series
Replies: 3
Views: 9795

Re: FEATURE REQUEST: User defined dataset for mapping to series

Re: generic filebot -rename above So as to add some info , Episode 1002 of detective Conan is actually S29E12 via airdate order and not S10x02. Re: Feature Request #2 above is in general the facility that is geared towards both situations and users who need "more". rednoah even provides and ...
by rv23
04 Apr 2021, 16:23
Forum: Feature Requests and Bug Reports
Topic: Support/Switch to using Anime-Lists/anime-lists instead of ScudLee/anime-lists
Replies: 2
Views: 4290

Support/Switch to using Anime-Lists/anime-lists instead of ScudLee/anime-lists

It seems like the ScudLee/anime-lists repo is either not actively maintained or very sparsely maintained (last update Jan 1 2021 and many outstanding PRs/Issues). This fork also seems to have been created to actively maintain an alternative using the same format (https://github.com/Anime-Lists/anime ...
by rv23
15 Feb 2021, 17:49
Forum: Help and Support
Topic: Using both AnimeList.AniDB & Xem.AniDB in --mapper produces incorrect result
Replies: 3
Views: 5277

Re: Using both AnimeList.AniDB & Xem.AniDB in --mapper produces incorrect result

Thanks, I never thought of using any {} for the mapper option, I'll work with that and see how I can fit that in. Re: Xem (Name -> Name) oh.. It never occurred to me that AnimeList.AniDB matched differently then Xem.AniDB. I had thought that that all of the matching is by default ID -> ID for both ...
by rv23
14 Feb 2021, 20:43
Forum: Help and Support
Topic: Using both AnimeList.AniDB & Xem.AniDB in --mapper produces incorrect result
Replies: 3
Views: 5277

Re: Using both AnimeList.AniDB & Xem.AniDB in --mapper produces incorrect result

If you are wondering WHY I'm using both.. Well 1) I thought it couldn't really hurt and give an invalid match 2) Because some Anime Release Groups seem to be using a numbering scheme that Xem.AniDB matches like [EMBER] Re Zero kara Hajimeru Isekai Seikatsu S2 - 15.mkv, where AnimeList.AniDB doesn't ...
by rv23
14 Feb 2021, 20:27
Forum: Help and Support
Topic: Using both AnimeList.AniDB & Xem.AniDB in --mapper produces incorrect result
Replies: 3
Views: 5277

Using both AnimeList.AniDB & Xem.AniDB in --mapper produces incorrect result

Using --mapper "[AnimeList.AniDB, Xem.AniDB] produces an incorrect map result, while using either one of them alone products the *correct* map result. Which is a bit odd.. Is this an expected behavior? The "incorrect" map.. filebot -rename --action test -r --conflict index --q 259640 --mapper ...
by rv23
10 Jan 2021, 14:50
Forum: Episode / Movie Naming Scheme
Topic: Release Groups {group}
Replies: 733
Views: 2293906

Re: Release Groups {group}

Anime release groups not detected on 1/10/2021 by filebot 4.9.2 r8046, spanning files from the last 6 months ... -__-' -__-_ 224 aceares aeenald-hikki ai-sama akihitosubs almighty anime-releases animebassme animesubs ano ari asperacircle asw atlassubbed bakedfish bayi bottleman wiki ccaaa cheap&co ...
by rv23
06 Jan 2021, 14:03
Forum: Scripting and Automation
Topic: English language only in movie (speaking language)
Replies: 2
Views: 9485

Re: English language only in movie (speaking language)

As I don't believe filebot can tell if a file has English Audio/Subtitle without "looking" at it, if it's acceptable to you I think at least 2 (I'm sure there are more) way's to tackle this. 1. In a previous step you could separate out the English movies from the non-English, so they are in ...
by rv23
27 Dec 2020, 16:21
Forum: Help and Support
Topic: db.anidb.id, AnimeList.anidb.id inconsistency when using --mapper AnimeList.AniDB with theTVDB database
Replies: 29
Views: 27793

Re: db.anidb.id, AnimeList.anidb.id inconsistency when using --mapper AnimeList.AniDB with theTVDB database

Confirmed. r8311 fixes the mapping for Sword Art Online: Alicization - War of Underworld (2020) at least (and likely some others).

Thank you very much for the fix.
by rv23
25 Dec 2020, 13:54
Forum: Help and Support
Topic: db.anidb.id, AnimeList.anidb.id inconsistency when using --mapper AnimeList.AniDB with theTVDB database
Replies: 29
Views: 27793

Re: db.anidb.id, AnimeList.anidb.id inconsistency when using --mapper AnimeList.AniDB with theTVDB database

Awesome, Thanks for the quick response.

I'll try and download r8311 and test it out in the next few days.