Search found 1251 matches

by kim
01 Feb 2022, 22:11
Forum: Episode / Movie Naming Scheme
Topic: Way to add LANGUAGE only when it isn't English?
Replies: 31
Views: 6435

Re: Way to add LANGUAGE only when it isn't English?

Code: Select all

{ plex[1] }/{ plex.derive{allOf{ languages =~ /eng/ ? null : languages.name[0].upper() }{genre}{director}{vf}.joining(', ', ' [', ']')}.name }
Hellboy (2004)/Hellboy (2004) [Fantasy, Guillermo del Toro, 1080p]
by kim
31 Jan 2022, 22:33
Forum: Episode / Movie Naming Scheme
Topic: Way to add LANGUAGE only when it isn't English?
Replies: 31
Views: 6435

Re: Way to add LANGUAGE only when it isn't English?

what strange results! ? https://www.themoviedb.org/movie/52999-l-adversaire?language=en-US { plex.derive{allOf{ languages =~ /eng/ ? null : languages.name[0].upper() }{genre}{director}{vf}.joining(', ', ' [', ']')}.name } {(plex^ null).name } {allOf{ languages =~ /eng/ ? null : languages.name[0].upp...
by kim
31 Jan 2022, 16:34
Forum: Episode / Movie Naming Scheme
Topic: Way to add LANGUAGE only when it isn't English?
Replies: 31
Views: 6435

Re: Way to add LANGUAGE only when it isn't English?

Code: Select all

{plex.name} {allOf{ languages =~ /eng/ ? null : languages.name[0].upper() }{genre}{director}{vf}.joining(', ', ' [', ']')}
sample:
The Adversary (2002) [FRENCH, Mystery, Nicole Garcia, 1080p]
by kim
31 Jan 2022, 16:16
Forum: Windows
Topic: Use French Title for French movies but English title for other movies
Replies: 4
Views: 2031

Re: Need help with functions not working

Code: Select all

{def norm = {it.replaceAll(/(?i)[abcde]/)}; norm(n) + ' vs ' + n}
sample:
Th isstr rtist vs The Disaster Artist
only use if you need to do the same thing multiple times within a

Code: Select all

{}
by kim
22 Jan 2022, 02:57
Forum: Windows
Topic: Movie Mode : hr:min:sec format
Replies: 15
Views: 3456

Re: Movie Mode : hr:min:sec format

Don't write "code", but tell us the END RESULT you want and a sample show to test with. {"character :") ( character.name[1] } ? {character.name[1]} = No such property: character for class = bad code This does like above but work: { def Character = net.filebot.WebServices.TheTVDB....
by kim
21 Jan 2022, 18:38
Forum: Windows
Topic: Movie Mode : hr:min:sec format
Replies: 15
Views: 3456

Re: Movie Mode : hr:min:sec format

{def characters=["Mickey"," Minnie"," Donald" ,"Daisy"]; characters instanceof List} stop this and use a CSV file like rednoah wrote back in 2018 https://www.filebot.net/forums/viewtopic.php?p=36619#p36619 https://www.filebot.net/forums/viewtopic.php?p=56089#...
by kim
20 Jan 2022, 05:46
Forum: Windows
Topic: No more Subtitles after Opensubtitles hack
Replies: 21
Views: 6289

Re: No more Subtitles after Opensubtitles hack

cool, so this bypasses the MD5 encode and store it in "clear text" ?
maybe people need to clear cache to force the script update
by kim
19 Jan 2022, 17:37
Forum: Windows
Topic: No more Subtitles after Opensubtitles hack
Replies: 21
Views: 6289

Re: No more Subtitles after Opensubtitles hack

fix the problem by storing your password verbatim and using it for login requests.
Do you mean store in "clear text" ?

If yes, can't you just edit the settings file ?
by kim
18 Jan 2022, 21:32
Forum: Windows
Topic: No more Subtitles after Opensubtitles hack
Replies: 21
Views: 6289

Re: No more Subtitles after Opensubtitles hack

Did you remember to tell Filebot of new pw ?
viewtopic.php?p=23813#p23813
by kim
15 Jan 2022, 03:10
Forum: Scripting and Automation
Topic: The Office (US) combined episodes
Replies: 2
Views: 1634

Re: The Office (US) combined episodes

maybe you can use this: {n}{ def noPart = {it.replaceAll(/\sPart\s\d|\s\(\d\)/)}; def fileSet = episodelist.findAll{ fn.after(s00e00) =~ noPart(it.title) }; noPart(fileSet.size() > 1 ? ' - S' + s.pad(2) + 'E' + fileSet.episode.min().pad(2) + '-E' + fileSet.episode.max().pad(2) + ' - ' + fileSet.titl...
by kim
27 Dec 2021, 00:24
Forum: Episode / Movie Naming Scheme
Topic: How do I tag 10bit files?
Replies: 7
Views: 8670

Re: How do I tag 10bit files?

' ' + 10 same as ' 10'
'10' (String) == 10 (Integer) = not the same

try this:

Code: Select all

{' '+ (bitdepth == 10 ? '10bit' : '')}
by kim
23 Dec 2021, 19:58
Forum: Help and Support
Topic: [Microsoft Store] Strange FileBot icon (in Light Mode)
Replies: 19
Views: 3894

Re: [Microsoft Store] Strange FileBot icon (in Light Mode)

Dark mode only "fixes" the taskbar not the desktop icon and you only need to change "Windows mode" not "app mode" to dark

desktop icon: "scale" does effect it e.g. 125% make it even smaller
by kim
22 Dec 2021, 14:41
Forum: Help and Support
Topic: [Microsoft Store] Strange FileBot icon (in Light Mode)
Replies: 19
Views: 3894

Re: Strange FileBot icon

This is a Windows thing not Filebot (so google e.g. "Windows 11 icon color around"):

Try deleting the shortcut and make it again

Code: Select all

C:\Program Files\WindowsApps\PointPlanck.FileBot_4.9.4.0_x64__49ex9gnthnt12
the "filebot.exe" file
by kim
21 Dec 2021, 20:15
Forum: Scripting and Automation
Topic: AMC - Any way to set timestamp on files?
Replies: 12
Views: 5006

Re: AMC - Any way to set timestamp on files?

btw:
You also just override it if nfo's has the dateadded tag then kodi will use this date
movie.nfo

Code: Select all

<movie>
    <dateadded>2021-03-26 11:35:50</dateadded>
</movie>
https://kodi.wiki/view/NFO_files/Templates
by kim
21 Dec 2021, 15:27
Forum: Scripting and Automation
Topic: AMC - Any way to set timestamp on files?
Replies: 12
Views: 5006

Re: AMC - Any way to set timestamp on files?

<dateadded>1</dateadded> <!-- 0 results in using the current datetime when adding a video; 1 (default) results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid; 2 results in using the newer datetime of the file's mtime and ctime --> https:...
by kim
09 Dec 2021, 00:11
Forum: Scripting and Automation
Topic: HTTP response code
Replies: 3
Views: 1458

Re: HTTP response code

ok
We (I) need a complete list possible system properties
Developer Options / Java System Properties

Do Filebot only work with the "new" format ?

Code: Select all

filebot -script fn:properties --def ...
I see you can add anything, how can you access it ?
by kim
08 Dec 2021, 15:41
Forum: Scripting and Automation
Topic: HTTP response code
Replies: 3
Views: 1458

HTTP response code

How can I get the HTTP response code ? OMDb.request() (other then from the log file) because for every round the timeout is 20 sec or so... Caused by: java.io.IOException: Server returned HTTP response code: 522 for URL If error I want to stop trying after the first round (3 times I think) of "...
by kim
06 Dec 2021, 23:25
Forum: Help and Support
Topic: Deduplicate multi-episode titles
Replies: 6
Views: 3116

Re: Deduplicate multi-episode titles

You can do this: {def onePart = t.split(' & ')*.replaceAll(/\sPart\s\d/).unique().join(' & ') plex.name.replace(t, onePart) } or {def onePart = t.split(' & ')*.replacePart('').unique().join(' & ') plex.name.replace(t, onePart)} sample: 12 Monkeys - S04E10-E11 - The Beginning or {def ...
by kim
06 Dec 2021, 18:42
Forum: Windows
Topic: list of "names" to add to file name
Replies: 7
Views: 2776

Re: list of "names" to add to file name

there is no "automation" way of adding new "tags"... but you can compare and then "flag" your files { def fileRuntime = (duration.seconds / 60) def dbRuntime = runtime def dif = (fileRuntime / runtime) dif > 1 ? 'longer' : 'shorter' } sample longer or { def dif = minute...
by kim
05 Dec 2021, 19:46
Forum: Episode / Movie Naming Scheme
Topic: Expression Help - I can't seem to test for null or not exist.
Replies: 7
Views: 2960

Re: Expression Help - I can't seem to test for null or not exist.

{ def languages = any{ audio['LanguageString3'].findAll().unique().take(3)*.upper() }{['Unknown']} def langSize = any{audio.language.findAll().unique().size()}{} def aud = '.[Aud-'+langSize+']' '.'+ ( 'bla.bla.RIFFTRAX.bla.bla' =~/RIFFTRAX/ ? any{langSize > 1 ? (languages + 'YES Rifftrax').toString...
by kim
05 Dec 2021, 16:01
Forum: Episode / Movie Naming Scheme
Topic: Expression Help - I can't seem to test for null or not exist.
Replies: 7
Views: 2960

Re: Expression Help - I can't seem to test for null or not exist.

Code: Select all

{
	def languages = any{ audio.'LanguageString3' }{'Unknown'}
	'bla.bla.RIFFTRAX.bla.bla' =~/RIFFTRAX/
		? languages.unique().take(3) + 'Rifftrax'
		: '[None, Rifftrax]'
}
by kim
02 Dec 2021, 20:46
Forum: Help and Support
Topic: Rename mismatch: not reading full title
Replies: 9
Views: 3748

Re: Rename mismatch: not reading full title

If you put Dexter.S01E02.mkv in folder "Dexter New Blood" it still match the org. show...
or even folder Dexter and Dexter New Blood.S01E02.mkv

I think this can use a tweak
by kim
01 Dec 2021, 03:02
Forum: Help and Support
Topic: Renaming TV show folders
Replies: 14
Views: 6200

Re: Renaming TV show folders

Here you go:

Code: Select all

{'E:/TV/'+plex[1]}{'/S'+s.pad(2)}{'/'+plex[3]}
sample:
E:/TV/30 Rock/S01/30 Rock - S01E01 - Pilot

Code: Select all

{'E:/TV/'+ny}{'/S'+s.pad(2)}{'/'+plex.name}
or

Code: Select all

{'E:/TV/'+ny}{'/S'+s.pad(2)}{'/'+plex[3]}
sample:
E:/TV/30 Rock (2006)/S01/30 Rock - S01E01 - Pilot
by kim
01 Dec 2021, 00:49
Forum: Help and Support
Topic: Renaming TV show folders
Replies: 14
Views: 6200

Re: Renaming TV show folders

My bad not a movie...

Do not "Ctrl+Shift to drag" just drag and drop the folder

Look at the type (folder vs e.g. mkv) under New Names

EDIT:
to "rename a parent folder"
you do this in the Format

Plex Naming Schemes
viewtopic.php?f=5&t=4116