Search found 1234 matches

by kim
03 May 2022, 12:36
Forum: Help and Support
Topic: New to any type of coding
Replies: 2
Views: 155

Re: New to any type of coding

To get you started ;)

Code: Select all

{fn.replaceAll(/(\w+).((?:19|20)\d{2}).(.+.vs.\w+).(\d{2}).(\d{2}).(\d{3}p)(.+)/, '$1 $2-$4-$5 $3').replace('EPL','English Premier League').space('.')}
sample:
English.Premier.League.2009-08-14.Aston.Villa.vs.Wigan

https://regexr.com/6krvi
by kim
27 Apr 2022, 11:02
Forum: Help and Support
Topic: Filebot Renaming
Replies: 4
Views: 191

Re: Filebot Renaming

try

Code: Select all

{folder.dir.name.space('.').replace("&", "and").replaceAll(/[!\[\]:'()?+-]/, "").replace(",", ".").replace("..", ".")}{any{'.'+s00e00}{'.'+fn.match(/(s\d+e\d+)-?(e\d+)?/)}}{fn.after(/(e\d+)/)}
by kim
15 Feb 2022, 15:12
Forum: Episode / Movie Naming Scheme
Topic: Keeping DC and Original both in a PLEX collection?
Replies: 2
Views: 448

Re: Keeping DC and Original both in a PLEX collection?

Different movie versions https://support.plex.tv/articles/200381043-multi-version-movies/ https://www.plexopedia.com/plex-media-server/general/organize-movie-files-plex/#differentversions Plex Tip #1 – Organizing separate Editions of the same movie https://blankstechblog.com/2016/05/04/plex-tip-1-or...
by kim
05 Feb 2022, 14:30
Forum: Scripting and Automation
Topic: "HDR" Added to Every Movie Title
Replies: 4
Views: 671

Re: "HDR" Added to Every Movie Title

Code: Select all

p:/movies/{n.sortName('$2, $1')} ({y})/{n}{'.'+allOf{vf}{channels}{vc}{aco}{bitdepth+'bit'}{HDR ? 'HDR' : null}.join('.')}
by kim
02 Feb 2022, 16:44
Forum: Scripting and Automation
Topic: Unofficial custom AMC script (intermediate users)
Replies: 26
Views: 25371

Re: Unofficial custom AMC script (intermediate users)

no, feel free to make one
yes it does
by kim
02 Feb 2022, 14:42
Forum: Feature Requests and Bug Reports
Topic: Feature Request: Episode level NFO
Replies: 14
Views: 3799

Re: Feature Request: Episode level NFO

No it's not and it's easy to add I did years ago ;) https://www.filebot.net/forums/viewtopic.php?f=4&t=5451 NFO: 1 ep: <episodedetails> </episodedetails> 2 ep <episodedetails> </episodedetails> <episodedetails> </episodedetails> 3 ep <episodedetails> </episodedetails> <episodedetails> </episodedetai...
by kim
01 Feb 2022, 22:18
Forum: Feature Requests and Bug Reports
Topic: Feature Request: Episode level NFO
Replies: 14
Views: 3799

Re: Feature Request: Episode level NFO

I think you need to add

Code: Select all

instanceof MultiEpisode
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: 2168

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: 2168

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: 2168

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: 505

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: 1284

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.getActors(series.id,...
by kim
21 Jan 2022, 18:38
Forum: Windows
Topic: Movie Mode : hr:min:sec format
Replies: 15
Views: 1284

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#p56089 https://www.filebot.net/forums/vi...
by kim
20 Jan 2022, 05:46
Forum: Windows
Topic: No more Subtitles after Opensubtitles hack
Replies: 21
Views: 1787

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: 1787

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: 1787

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: 538

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: 7366

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: 1586

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: 1586

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: 3158

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: 3158

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: 755

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: 755

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 "Fetch...