Search found 22998 matches

by rednoah
21 Jan 2014, 03:48
Forum: Scripting and Automation
Topic: fn:cleaner script only seems to work on jpg files
Replies: 3
Views: 2955

Re: fn:cleaner script only seems to work on jpg files

Just check some basic tutorial bash tutorials if you're on Linux or Windows CMD if on Windows.

If you use && the second command won't be executed if the first one fails. Not sure if that's the issue. Plenty of resources on google anyway for how to work with console.
by rednoah
21 Jan 2014, 03:42
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

Then you're confusing something, running multiple watchers or something, I donno, I can only tell you that in this run you show me here nothing has been renamed.


EDIT: This is not valid format code:

NO

Code: Select all

{[$vf]}
YES (String expression)

Code: Select all

{"[$vf]"}
YES (Array expression)

Code: Select all

{[vf]}
by rednoah
20 Jan 2014, 19:11
Forum: Episode / Movie Naming Scheme
Topic: Anime not getting season #
Replies: 3
Views: 3725

Re: Anime not getting season #

1.
No. Because you don't need to (once you understand the format expressions).

2.
How would the format editor know which media file you wanna test the format with? Suggestion: Set a media file to test with.
by rednoah
20 Jan 2014, 19:06
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

Yeah, but now you have the cmdline String in the Groovy code so it needs to be Groovy String escaped, not Windows CMD escaped, or possibly both.

Check the amc output and see what amc thinks you have passed in, you should see the issue right away which part doesn't get passed along as you had thought.
by rednoah
20 Jan 2014, 18:57
Forum: Help and Support
Topic: pyload script does nothing
Replies: 1
Views: 2279

Re: pyload script does nothing

You're not redirecting stderr so you're not seeing the error output: http://www.cyberciti.biz/faq/redirecting-stderr-to-stdout/ This path is just really shitty: /volume1/extracted/30RGR.301.rar/rsg-30rockxvidrp-s03e01.avi Bad luck. You'll need to add to nudge it into the right direction manually. Se...
by rednoah
20 Jan 2014, 10:30
Forum: Scripting and Automation
Topic: Extension: Preserve Rename option?
Replies: 3
Views: 3541

Re: Extension: Preserve Rename option?

Figures...

btw if you run via cron job make sure you set excludeList to avoid multiple processing of the same files:

Code: Select all

--def excludeList=amc.txt
by rednoah
20 Jan 2014, 02:51
Forum: Scripting and Automation
Topic: Extension: Preserve Rename option?
Replies: 3
Views: 3541

Re: Extension: Preserve Rename option?

If you use FileBot from cmdline it will let NEVER EVER let you override the extension, even if you wanted to, so there is no options.

Give me the amc logs where this happens and I'll have a look.
by rednoah
20 Jan 2014, 02:41
Forum: Feature Requests and Bug Reports
Topic: MediaInfo problem
Replies: 6
Views: 5915

Re: MediaInfo problem

Your anti-virus is probably blocking the JNA library for some reason.

Have you tried with FileBot_4.0_RC1?
https://sourceforge.net/projects/filebo ... ebot/HEAD/
by rednoah
20 Jan 2014, 02:38
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

I've tried the same script and it starts working after 5 seconds when a file is added.

Is this what you're calling?

Code: Select all

filebot -script watcher_test.groovy
How would it know which folder to watch?

Code: Select all

filebot -script watcher_test.groovy /path/to/folder/to/watch
by rednoah
19 Jan 2014, 15:11
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

It all works fine.

I guess you're using a crappy windows editor that adds a byte marker to the beginning of the file, which makes it illegal groovy code. Use a good editor like notepad2 or notepad++ and NEVER EVER using anything made by microsoft like editor, wordpad or word.
by rednoah
19 Jan 2014, 10:06
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

batch file as in .bat file? Not sure what you mean, that doesn't make sense.

groovy script should be .groovy files and you should use filebot to execute the script with filebot -script script.groovy

When I say "latest version" I don't mean version 3.8 but the absolutely latest revision.
by rednoah
19 Jan 2014, 02:43
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

I tested with the latest revision. Your code seems to work.

You probably have issues in the rest of the script.
by rednoah
18 Jan 2014, 12:46
Forum: Scripting and Automation
Topic: fn:cleaner script only seems to work on jpg files
Replies: 3
Views: 2955

Re: fn:cleaner script only seems to work on jpg files

You know that fn:cleaner only touches files in folders that do not contain any video files right?
by rednoah
18 Jan 2014, 10:06
Forum: Help and Support
Topic: Language tag of subtitles changed
Replies: 8
Views: 6172

Re: Language tag of subtitles changed

I know, that's why I can't use Java Locale since in the iso standard there is only one language with different variants, so pb/pob is not in the standard technically. No worries, it's taken care of now. But people may have to change their format a bit.
by rednoah
18 Jan 2014, 09:47
Forum: Scripting and Automation
Topic: AMC - Music by Album instead of Artist
Replies: 6
Views: 4630

Re: AMC - Music by Album instead of Artist

Though for dealing with large music collections other tools might be more suitable. For music filebot just keeps things as simple as possible. The other MusicBrainz tools will be much better.
by rednoah
18 Jan 2014, 09:45
Forum: Scripting and Automation
Topic: AMC - Music by Album instead of Artist
Replies: 6
Views: 4630

Re: AMC - Music by Album instead of Artist

You can try and play with the format. Try the format editor and sample bindings. If the information you need to organize is there, then the rest is just groovy logic.
by rednoah
18 Jan 2014, 09:40
Forum: Help and Support
Topic: Language tag of subtitles changed
Replies: 8
Views: 6172

Re: Language tag of subtitles changed

I changed that. There's issue between Java Locale support and what people generally consider a "language". {lang} will now be a filebot-specific Language object, and not Locale, and default String value will be ISO3. The other values you may want you can get via properties * {lang.iso2} * ...
by rednoah
18 Jan 2014, 09:36
Forum: Scripting and Automation
Topic: Combine amc and watcher scripts
Replies: 18
Views: 10090

Re: Combine amc and watcher scripts

You're code has syntax errors. Your String literals are wrong.

If you pass in arguments just use '''...''' to avoid any escape issue that you may have with " or '
by rednoah
16 Jan 2014, 16:35
Forum: Scripting and Automation
Topic: [AMC] No Extraction
Replies: 3
Views: 3698

Re: [AMC] No Extraction

So if the archive is password protected it still gets extracted but in a corrupt state?

Because filebot only extracts archives that contain at least one video file, and i guess if the archive is encrypted then it'll already fail at that point.
by rednoah
16 Jan 2014, 16:31
Forum: Scripting and Automation
Topic: [AMC] Skip corrupted media
Replies: 4
Views: 3737

Re: [AMC] Skip corrupted media

It's 10 min by default. But for all the changes I've made in the last couple of months you need the latest revision:
https://sourceforge.net/projects/filebo ... ebot/HEAD/

Try this, if {duration} is empty then these files should be excluded.
by rednoah
16 Jan 2014, 08:33
Forum: Help and Support
Topic: Raspberry Pi - Pyload - Filebot problem
Replies: 1
Views: 2141

Re: Raspberry Pi - Pyload - Filebot problem

Does /usb/Download only contains new files, or lots of random files from previous downloads? In which case you must set excludeList : --def excludeList=amc-input.txt Keep a list of previously processed files to be ignored in future runs (if you run this script on the same files repeatedly you must e...
by rednoah
16 Jan 2014, 07:51
Forum: Scripting and Automation
Topic: [AMC] No Extraction
Replies: 3
Views: 3698

Re: [AMC] No Extraction

You have a point, but why wouldn't you want it to extract archives? Which archives do you not want to be extracted?
by rednoah
16 Jan 2014, 07:46
Forum: Scripting and Automation
Topic: [AMC] Skip corrupted media
Replies: 4
Views: 3737

Re: [AMC] Skip corrupted media

How do I know if media is corrupted? I think the newer amc scripts have a minDurationMS condition which should work. Corrupt files shouldn't have a mediainfo duration value, and thus be ignored.
by rednoah
15 Jan 2014, 15:40
Forum: Help and Support
Topic: amc beginner
Replies: 1
Views: 1897

Re: amc beginner

Both OK. But if you have your own local version of the script you won't get my rolling updates. So the preferred way would be to call fn:amc and set --def seriesFormat=...