Search found 131 matches

by stephen147
08 May 2019, 13:51
Forum: Feature Requests and Bug Reports
Topic: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined
Replies: 8
Views: 3787

Re: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined

Thanks once AGAIN!

So with the +~ operater. What is the difference in using != like my example below?

Code: Select all

{if (hd != 'SD') any{'non-HDR'}{hdr + bitdepth + 'bit'}}
by stephen147
08 May 2019, 12:52
Forum: Feature Requests and Bug Reports
Topic: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined
Replies: 8
Views: 3787

Re: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined

Well, this code is giving an error Binding "hdr": java.lang.NullPointerException

Code: Select all

{self.hd == 'SD' ? '' : {self.hdr ? self.hdr + bitdepth + 'bit' : 'non-HDR'}}
I want to check if it's not SD then put {hdr} if it exists else use the string non-HDR.
by stephen147
08 May 2019, 10:40
Forum: Feature Requests and Bug Reports
Topic: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined
Replies: 8
Views: 3787

Re: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined

They are not HDR in this case.

Code: Select all

{Video[0].'colour_primaries'}
Retuns:

Code: Select all

Binding "colour_primaries": undefined
which is a similar error for the {hdr} binding.
by stephen147
08 May 2019, 08:52
Forum: Feature Requests and Bug Reports
Topic: {hdr} ERROR: Binding "Video[0][colour_primaries]": undefined
Replies: 8
Views: 3787

{hdr} ERROR: Binding "Video[0][colour_primaries]": undefined

The {hdr} expression is throwing an error Binding "Video[0][colour_primaries]": undefined . Checked on 230 test files and 2 of them are receiving this error. https://i.imgur.com/ETBxOSi.png FileBot 4.8.5 (r6224) JNA Native: 5.2.2 MediaInfo: 18.12 7-Zip-JBinding: 9.20 Chromaprint: fpcalc ve...
by stephen147
05 May 2019, 13:34
Forum: Scripting and Automation
Topic: fn:renall with --filter switch help
Replies: 13
Views: 7823

PowerShell Rename PS1 Script

Here my complete rename PowerShell script for anyone who may want it. :!: READ THE SECTION AT THE HEADER OF THE CODE https://media.giphy.com/media/lTMxHlFXHtRfZywRza/giphy.gif # ABOUT ################################################################# # Version 0.1 beta - 2019.05.05 - FIRST RELEASE # ...
by stephen147
05 May 2019, 11:45
Forum: Scripting and Automation
Topic: fn:renall with --filter switch help
Replies: 13
Views: 7823

Re: fn:renall with --filter switch help

Perfect, thank you!
by stephen147
05 May 2019, 10:46
Forum: Scripting and Automation
Topic: fn:renall with --filter switch help
Replies: 13
Views: 7823

Re: fn:renall with --filter switch help

That will bring me back to square one.. I only want to change the video files and the nfo also.
by stephen147
04 May 2019, 11:03
Forum: Episode / Movie Naming Scheme
Topic: Multiple audio tracks with different codecs and languages
Replies: 111
Views: 159349

Re: Multiple audio tracks with different codecs and languages

kim wrote: 04 May 2019, 03:27 This took me some time to make, I hope you like it:
Cool, thanks for the example. I'll stick with grabbing the [0] stream as this will be the primary one. ;)
by stephen147
03 May 2019, 13:39
Forum: Scripting and Automation
Topic: fn:renall with --filter switch help
Replies: 13
Views: 7823

Re: fn:renall with --filter switch help

3. Is this the sort of behavior okay? I don't mind as long as I can get the --file-filter switch to work. IDK. This particular corner case hasn't come up before. Might make sense to add if TMDb links are becoming more common nowadays. Yes, I feel it's not desired when it affects only one specific t...
by stephen147
03 May 2019, 12:02
Forum: Scripting and Automation
Topic: fn:renall with --filter switch help
Replies: 13
Views: 7823

Re: fn:renall with --filter switch help

filebot -script fn:renall "Z:\Movies & TV\_Newly DL'd\_To Process" -non-strict --format "{n}" --db TheMovieDB --file-filter f.video --action test --log info Returns nothing. Either does it by specifying the folder where the file resides. filebot -script fn:renall "Z:\Mo...
by stephen147
03 May 2019, 10:07
Forum: Scripting and Automation
Topic: fn:renall with --filter switch help
Replies: 13
Views: 7823

fn:renall with --filter switch help

I want not to rename any url extensions as the renall fn does this currently. How can I use the --filter switch to exclude the filetype 'url' There are two urls in the folder (Example of folder tree) \---_To Process \---A Perfect Getaway (2009) (Director's Cut) (Unrated) 1080p HD Blu-ray non-HDR x26...
by stephen147
02 May 2019, 20:33
Forum: Scripting and Automation
Topic: Option "--format" takes an operand
Replies: 3
Views: 1991

Re: Option "--format" takes an operand

Thanks. I got it to work straight after I post only I wasn't allowed to spam the thread soon after I'd already posted. Always after I spend yonks wondering why something doesn't work I get it to work or find the issue after posting a thread. :!: TLDR User error, AGAIN!! Forgot to assign the variable...
by stephen147
02 May 2019, 19:42
Forum: Scripting and Automation
Topic: Option "--format" takes an operand
Replies: 3
Views: 1991

Option "--format" takes an operand

Using powershell with this code saved as a .ps1 file: Get-Content "Z:/Movies & TV/_Newly DL'd/Movie Format.groovy" | Select-String -pattern "^.*//+|^\s*$" -notmatch filebot -script fn:sysenv --format "$FORMAT" # filebot -script fn:renall "Z:/Movies & TV/_Ne...
by stephen147
02 May 2019, 17:09
Forum: Episode / Movie Naming Scheme
Topic: Multiple audio tracks with different codecs and languages
Replies: 111
Views: 159349

Re: Multiple audio tracks with different codecs and languages

I've done my tweak on it using all the codes here as I'm not as good as you lot with coding the base code. Thanks to all concerned. :!: This only gets the 1st audio channel. { def mCFP = [ 'AAC LC SBR' : 'AAC', 'AAC LC' : 'AAC', 'AC 3 Dep' : 'E-AC3', 'AC 3' : 'AC3', 'DTS 96 24' : 'DTS 96-24', 'DTS E...
by stephen147
01 May 2019, 20:29
Forum: Scripting and Automation
Topic: Can we use external file for fn:renall script
Replies: 9
Views: 4169

Re: Can we use external file for fn:renall script

Got it to work just before I pulled my hair out!! T'was a problem with the format code: .replace(':','-').replaceAll(/[\/:\"\*?<>|]/,' - ') Was moved down to the end and just just used: call{n}+ as opposed to having the replace there. Makes total sense really. :oops: New working code: { def spa...
by stephen147
01 May 2019, 18:06
Forum: Scripting and Automation
Topic: Can we use external file for fn:renall script
Replies: 9
Views: 4169

Re: Can we use external file for fn:renall script

That is the correct output from PowerShell. # filebot -script fn:sysenv --format "{n}" Returns: # Arguments # args[0] = -script args[1] = fn:sysenv args[2] = --format args[3] = {n} RIGHT. :) I've found a section of code where the problem lies. :!: This works { def space = call{' '}; def Ch...
by stephen147
01 May 2019, 17:34
Forum: Scripting and Automation
Topic: Can we use external file for fn:renall script
Replies: 9
Views: 4169

Re: Can we use external file for fn:renall script

This works: $FOLDER_ROOT="Z:/Movies & TV/_Newly DL'd" $GROOVY_MOVIE="Movie Format.groovy" $FORMAT=Get-Content $FOLDER_ROOT"/"$GROOVY_MOVIE filebot -script fn:sysenv --format "$FORMAT" Returns: # Arguments # args[0] = -script args[1] = fn:sysenv args[2] = -...
by stephen147
01 May 2019, 15:43
Forum: Scripting and Automation
Topic: Can we use external file for fn:renall script
Replies: 9
Views: 4169

Re: Can we use external file for fn:renall script

1 . That's strange, I've run into no issue with that format code in amc or via the GUI. 2 . Ather running this in PowerShell with the same format as above: filebot -script fn:sysenv $FOLDER_PROCESS="_To Process" $FOLDER_ROOT="Z:/Movies & TV/_Newly DL'd" $GROOVY_MOVIE="M...
by stephen147
30 Apr 2019, 16:42
Forum: Scripting and Automation
Topic: Can we use external file for fn:renall script
Replies: 9
Views: 4169

Re: Can we use external file for fn:renall script

New to PowerShell. Here's the ps1 I have. I've tried the Get-Content function here. $FOLDER_PROCESS="_To Process" $FOLDER_ROOT="Z:/Movies & TV/_Newly DL'd" $GROOVY_MOVIE="Movie Format.groovy" $FMT=(Write-Host (Get-Content $FOLDER_ROOT"/"$GROOVY_MOVIE)) fil...
by stephen147
30 Apr 2019, 11:48
Forum: Scripting and Automation
Topic: Can we use external file for fn:renall script
Replies: 9
Views: 4169

Can we use external file for fn:renall script

I've been trying to point to a groovy file for the fn:renall script like so: set "FOLDER_PROCESS=_To Process" set "FOLDER_ROOT=Z:/Movies & TV/_Newly DL'd" set "GROOVY_MOVIE=Movie Format.groovy" filebot -script fn:renall "%FOLDER_ROOT%/%FOLDER_PROCESS%" -no...
by stephen147
30 Apr 2019, 11:33
Forum: Scripting and Automation
Topic: --def clean=y not working as it should?
Replies: 8
Views: 3842

Re: --def clean=y not working as it should?

That's fine. Nothing I can't handle. I've learned in a couple of days how to write javascript for Photoshop. So I'm sure I could add this ability for amc script. After all, I'll be the only one using it and take full reasonability for any F'ups I do :)
by stephen147
30 Apr 2019, 11:19
Forum: Scripting and Automation
Topic: --def clean=y not working as it should?
Replies: 8
Views: 3842

Re: --def clean=y not working as it should?

The easiest way would be to have your own post-processing commands. Go through the history, check which files are still there, process them according to your preferences Going this route. I wouldn't know where to start. If you don't to import the extras into the new structure, and really just wanna...
by stephen147
30 Apr 2019, 10:36
Forum: Scripting and Automation
Topic: --def clean=y not working as it should?
Replies: 8
Views: 3842

Re: --def clean=y not working as it should?

The cleaner script of course won't let you accidentally delete your entire video & music collection. :lol: Yes, that would be bad times. :lol: Here's the default "clutter" types: https://github.com/filebot/scripts/blob/master/cleaner.groovy#L7 I see. I understand. You can pass in your...
by stephen147
29 Apr 2019, 22:27
Forum: Scripting and Automation
Topic: --def clean=y not working as it should?
Replies: 8
Views: 3842

Re: --def clean=y not working as it should?

It's going back to my other thread here: https://www.filebot.net/forums/viewtopic.php?f=4&t=10687 This is not the same problem. There, I was trying to move that folder but here, if that folder exists, it prevents filebot -script fn:cleaner . to work correctly. Try this zip file of my folder hier...
by stephen147
29 Apr 2019, 11:00
Forum: Scripting and Automation
Topic: --def clean=y not working as it should?
Replies: 8
Views: 3842

--def clean=y not working as it should?

Here's my BAT file code: set "EXCLIST=amc_excludelist.groovy" set "FOLDER_LOG=_AMC Log Files" set "FOLDER_PROCESS=_To Process" set "FOLDER_ROOT=Z:/Movies & TV/_Newly DL'd" set "GROOVY_ANIME=Anime Format.groovy" set "GROOVY_MOVIE=Movie Format...