Search found 22984 matches

by rednoah
03 Jan 2014, 06:43
Forum: Feature Requests and Bug Reports
Topic: Exponential delays when subtitle-searching multiple folders
Replies: 18
Views: 15051

Re: Exponential delays when subtitle-searching multiple fold

It's the same as filebot -script fn:osdb.login now. With the newer jars that use GitHub.
by rednoah
03 Jan 2014, 06:06
Forum: Help and Support
Topic: Ubuntu headless filebot script
Replies: 5
Views: 3749

Re: Ubuntu headless filebot script

--def xbmc=hostname Tell the given XBMC instance to rescan it's library
:ugeek:
by rednoah
03 Jan 2014, 06:04
Forum: Help and Support
Topic: Changing artwork.tvdb.groovy for my needs
Replies: 3
Views: 2530

Re: Changing artwork.tvdb.groovy for my needs

replace

Code: Select all

"poster.jpg"
with

Code: Select all

"season${season.pad(2)}-poster.jpg"
by rednoah
03 Jan 2014, 05:56
Forum: Feature Requests and Bug Reports
Topic: Exponential delays when subtitle-searching multiple folders
Replies: 18
Views: 15051

Re: Exponential delays when subtitle-searching multiple fold

4000 files, regex replace, how long can it take? 1 second? :D I can assure you that 99.99% of the time it runs will be spent waiting for the the remote filesystem to respond. :D I think the main reason things were significantly slower on your side is because you're working with remote files. So even...
by rednoah
02 Jan 2014, 19:18
Forum: Tips, Tricks and Tutorials
Topic: [Windows] Context Menu w/ Folder Watcher+Scripts Pack [1.8]
Replies: 168
Views: 414307

Re: [Windows] Advanced Explorer Context Menu (GitHub Integra

With the next revision you can do this:

Code: Select all

-get-subtitles --format MATCH_VIDEO
by rednoah
02 Jan 2014, 18:36
Forum: Tips, Tricks and Tutorials
Topic: [Windows] Context Menu w/ Folder Watcher+Scripts Pack [1.8]
Replies: 168
Views: 414307

Re: [Windows] Advanced Explorer Context Menu (GitHub Integra

I'm sure Groovy has lots of nifty ways to read config or Java Property Files.

Though for quickly reading CSV data I have a helper:

props.txt (tab-separated)

Code: Select all

a	1
b	2
c	3
Groovy:

Code: Select all

def map = csv('D:/props.txt', '\\t')
println map
by rednoah
02 Jan 2014, 17:44
Forum: Tips, Tricks and Tutorials
Topic: [Windows] Context Menu w/ Folder Watcher+Scripts Pack [1.8]
Replies: 168
Views: 414307

Re: [Windows] Advanced Explorer Context Menu (GitHub Integra

Actually having local groovy script files isn't a bad idea, makes it easy to edit. The the script itself is extremely simple anyway. -trust-script works like you said. You may not need it with basic filebot tasks but if you were to fetch artwork were the groovy script needs to write files it's requi...
by rednoah
02 Jan 2014, 16:41
Forum: Tips, Tricks and Tutorials
Topic: [Windows] Context Menu w/ Folder Watcher+Scripts Pack [1.8]
Replies: 168
Views: 414307

Re: [Windows] Advanced Explorer Context Menu (GitHub Integra

Actually you have a point. If you use --output we have to edit the .reg commands, while if you have the scripts local it's easy to edit. You can do this: rename(..., format:'{n}/...', output:'//mynas/media') Not much different, but slightly easier to manage if the root path and format is different. ...
by rednoah
02 Jan 2014, 16:32
Forum: Tips, Tricks and Tutorials
Topic: [Windows] Context Menu w/ Folder Watcher+Scripts Pack [1.8]
Replies: 168
Views: 414307

Re: [Windows] Advanced Explorer Context Menu (GitHub Integra

Just edit the groovy scripts and use your own format.
by rednoah
02 Jan 2014, 15:52
Forum: Feature Requests and Bug Reports
Topic: Subtitles
Replies: 16
Views: 12248

Re: Subtitles

Added support for guessing language from .idx contents with r1967.
by rednoah
02 Jan 2014, 15:00
Forum: Tips, Tricks and Tutorials
Topic: [Windows] Context Menu w/ Folder Watcher+Scripts Pack [1.8]
Replies: 168
Views: 414307

Re: [Windows] Advanced Explorer Context Menu (GitHub Integra

HOW DID YOU DO THE SUB MENUS !?!?!? I could never figure that out, I thought for that I'll need implement some C# interfaces. EDIT: btw if you maintain these scripts on GitHub you can directly execute from there so people don't need to download anything: filebot -script https://raw.github.com/Capri...
by rednoah
02 Jan 2014, 10:53
Forum: Feature Requests and Bug Reports
Topic: Subtitles
Replies: 16
Views: 12248

Re: Subtitles

1. {fn.match(/forced/)} If the fn contains 'forced' it will work. I tried, and it works just fine. It can't not. It's literally what the code does. You probably get a warning since you haven't set your sample file for testing to a path that actually contains that 'forced' tag. You're testing 'What i...
by rednoah
02 Jan 2014, 04:46
Forum: Feature Requests and Bug Reports
Topic: Exponential delays when subtitle-searching multiple folders
Replies: 18
Views: 15051

Re: Exponential delays when subtitle-searching multiple fold

It's probably easier if you make a single .bat file that calls make both of these filebot calls. This should be as easy as just calling two commands but cmd is always troublesome.
by rednoah
02 Jan 2014, 04:42
Forum: Feature Requests and Bug Reports
Topic: UNCUT, EXTENDED, DIRECTORS CUT
Replies: 23
Views: 17832

Re: UNCUT, EXTENDED, DIRECTORS CUT

You can use . which is wildcard for any character:

Code: Select all

directors.cut
by rednoah
02 Jan 2014, 01:55
Forum: Scripting and Automation
Topic: The adventure of CLI, context menus, and stupid characters
Replies: 11
Views: 7488

Re: The adventure of CLI, context menus, and stupid characte

haha, there was some /$ and $/ in the code that mess it up even with dollar slashy! :D

OK, last resort, make a text file with your format:

Code: Select all

def format = new File('path/to/format.txt').getText()
by rednoah
02 Jan 2014, 01:26
Forum: Scripting and Automation
Topic: The adventure of CLI, context menus, and stupid characters
Replies: 11
Views: 7488

Re: The adventure of CLI, context menus, and stupid characte

haha, backslashes need to bestring escaped, but at least at this point you only need to replace \ with \\


Try the Dollar Slashy $/.../$:

Code: Select all

def format = $/dollar\slashy/is\the/shizzle/$
http://mrhaki.blogspot.tw/2011/04/groov ... lashy.html
by rednoah
02 Jan 2014, 00:28
Forum: Feature Requests and Bug Reports
Topic: Exponential delays when subtitle-searching multiple folders
Replies: 18
Views: 15051

Re: Exponential delays when subtitle-searching multiple fold

Nope, for that would completely break the -get-missing-subtitles feature.

But for scripting it's not really important, if you can call one script to grab subs, you might as well call another to remove the language tags, if you really need to.
by rednoah
02 Jan 2014, 00:23
Forum: Scripting and Automation
Topic: The adventure of CLI, context menus, and stupid characters
Replies: 11
Views: 7488

Re: The adventure of CLI, context menus, and stupid characte

That's why my context menu samples don't pass in a format, it's crazy!! Here's what I'd do: Ignore cmd as much as possible, and do everything in Groovy: rename1.groovy def input = args[0].isDirectory() ? args[0].listFiles() : args[0] def format = '''/tripple/quotes/are/the/shizzle''' rename(file:inp...
by rednoah
01 Jan 2014, 19:17
Forum: Feature Requests and Bug Reports
Topic: UNCUT, EXTENDED, DIRECTORS CUT
Replies: 23
Views: 17832

Re: UNCUT, EXTENDED, DIRECTORS CUT

Code: Select all

{file.path.match(/uncut/)}
by rednoah
01 Jan 2014, 12:55
Forum: Scripting and Automation
Topic: AMC doesn't work at all
Replies: 7
Views: 4628

Re: AMC doesn't work at all

It's always the same. :P
by rednoah
01 Jan 2014, 12:26
Forum: Feature Requests and Bug Reports
Topic: Exponential delays when subtitle-searching multiple folders
Replies: 18
Views: 15051

Re: Exponential delays when subtitle-searching multiple fold

Send me a list of file paths and I'll try myself.
by rednoah
01 Jan 2014, 11:36
Forum: Help and Support
Topic: Artwork from file path when using content menus
Replies: 2
Views: 1945

Re: Artwork from file path when using content menus

Sorry, the script doesn't support that. It starts by finding folders/subfolders and that doesn't work if the root is a file already.
by rednoah
01 Jan 2014, 09:56
Forum: Feature Requests and Bug Reports
Topic: Exponential delays when subtitle-searching multiple folders
Replies: 18
Views: 15051

Re: Exponential delays when subtitle-searching multiple fold

Mmhhh... that may potentially be the case since i started using my matching logic for file/subtitle matches as well. I guess I should do some per-folder clustering before throwing everything into the Matcher.

Try r1961.