WebDL and BDrip

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
LuSa0601
Posts: 1
Joined: 22 Jul 2021, 05:24

WebDL and BDrip

Post by LuSa0601 »

Good evening, excuse a query, how can I identify a movie or series as WebDL or BDrip but not both attributes together, for example there are series that are WebDL and the BDrip cannot be added since it was not extracted from a DVD, I am trying to create a script but I'm still inexperienced, this is the code I'm creating:

Code: Select all

{n} ({y}) 

{(source == '.WEB.|.Web.|.web.|WEB|Web|web|WEBDL|WebDL|Webdl|webdl|WEB.DL|Web.DL|Web.dl|web.dl|WEB-DL|Web-DL|Web-dl|web-dl|WWW|www') ?

    (hd == 'SD') ? {any{text.size()}{0} > 0 ? 'SD Web-DL':'SD Web-DL'} :

    (hd == 'UHD') ? ( ((bytes/1073741824).round(1) > 10 && bitrate >= 26000000 ? '4K Web-DL Remux' : {any{text.size()}{0} > 0 ? '4K Web-DL':'4K Web-DL'})) :

    (hd == 'HD' && vf == '720p') ? {any{text.size()}{0} > 0 ? '720p Web-DL':'720p Web-DL'} :

    (hd == 'HD' && vf == '1080p' ?

            ((bytes/1073741824).round(1) > 15 && bitrate >= 18000000) ? '1080p Web-DL Remux' :

            (bitrate > 8000000) ? {any{text.size()}{0} > 0 ? '1080p Web-DL':'1080p Web-DL'} : {any{text.size()}{0} > 0 ? '1080p Web-DL':'1080p Web-DL'} :

            {any{text.size()}{0} > 0 ? '1080p Web-DL':'1080p Web-DL'}) : (hd == 'SD') ? {any{text.size()}{0} > 0 ? 'SD Web-DL':'SD Web-DL'} :

    (hd == 'UHD') ? ( ((bytes/1073741824).round(1) > 10 && bitrate >= 26000000 ? '4K UHDremux' : {any{text.size()}{0} > 0 ? '4K BDrip':'4K BDrip'})) :

    (hd == 'HD' && vf == '720p') ? {any{text.size()}{0} > 0 ? '720p':'720p'} :

    (hd == 'HD' && vf == '1080p' ?

            ((bytes/1073741824).round(1) > 15 && bitrate >= 18000000) ? '1080p BDremux' :

            (bitrate > 8000000) ? {any{text.size()}{0} > 0 ? '1080p BDrip':'1080p BDrip'} : {any{text.size()}{0} > 0 ? '1080p BRrip':'1080p BRrip'} :

            {any{text.size()}{0} > 0 ? '1080p BRrip':'1080p BRrip'})}
                   

{' (' + fn.matchAll(/extended|uncensored|open.matte|noir.edition|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}

{tags =~ /EXTENDED|Extended|extended/ ? '(Extended)' : tags =~ /UNCENSORED|Uncensored|uncensored/}

{hdr =~ /HDR|hdr/ ? ' HDR' : hdr =~ /HDR10|hdr10/ ? ' HDR10' : hdr =~ /HDR10+|hdr10+/ ? ' HDR10+' : ''}

{fn =~ /3D|3d/ ? ' 3D' : ''}

{vc=~ /HEVC|x265/ ? ' x265' : vc =~ /AVC|x264/ ? ' x264' : ''} {' '}

{bitdepth}{'bits'}

{fps =~ /118|119|120/ ? ' 120 fps' : fps =~ /58|59|60|61/ ? ' 60 fps' : ''} {[mbps]} - 

{audiolanguages} - 

{ac} {aco} {channels}
User avatar
rednoah
The Source
Posts: 20056
Joined: 16 Nov 2011, 08:59

Re: WebDL and BDrip

Post by rednoah »

{source} can be either WebDL or BDrip or some other value but cannot ever be both at the same time:
viewtopic.php?t=11265


:?: Can you provide a sample file path were {vs} or {source} don't yield the expected value?
:idea: Please read the FAQ and How to Request Help.
Post Reply