Missing {source} from release

All about user-defined episode / movie format expressions
Post Reply
redbull666
Donor
Posts: 29
Joined: 08 Jan 2014, 20:45

Missing {source} from release

Post by redbull666 » 20 Nov 2017, 15:04

Just had the following release fly by:
Curb.Your.Enthusiasm.S09E08.1080p.WEB.h264-CONVOY

Filebot/mediainfo could not determine the Source for this file, and thus the naming gets a bit messed up.

Is this an issue with the release? Something that could be improved on Filebot end?

User avatar
rednoah
The Source
Posts: 14363
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Missing {source} from release

Post by rednoah » 20 Nov 2017, 17:21

WEB web is not considered a valid source pattern. It would have to say WEBRip for the {source} binding to work.

Here's the current source pattern:

Code: Select all

CAMRip|CAM|PDVD|TS|TELESYNC|PDVD|PTVD|PPVRip|Screener|SCR|SCREENER|DVDSCR|DVDSCREENER|BDSCR|R4|R5|R5LINE|R5.LINE|DVD|DVD5|DVD9|DVDRip|DVDR|TVRip|DSR|PDTV|SDTV|HDTV|HDTVRip|DVB|DVBRip|DTHRip|VODRip|VODR|BDRip|BRRip|BR.Rip|BluRay|Blu.Ray|BD|BDR|BD25|BD50|3D.BluRay|3DBluRay|3DBD|BR.Scr|BR.Screener|HDDVD|HDRip|WorkPrint|VHS|VCD|TELECINE|WEBRip|WEB.Rip|WEBDL|WEB.DL|WEBCap|WEB.Cap|ithd|iTunesHD|Laserdisc|AmazonHD|NetflixHD|NetflixUHD|VHSRip|LaserRip|URip|UnknownRip|MicroHD
:idea: Please read the FAQ and How to Request Help.

redbull666
Donor
Posts: 29
Joined: 08 Jan 2014, 20:45

Re: Missing {source} from release

Post by redbull666 » 20 Nov 2017, 17:39

Ok thanks, will add ".WEB." to the blacklist :)

User avatar
rednoah
The Source
Posts: 14363
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Missing {source} from release

Post by rednoah » 20 Nov 2017, 18:00

Unfortunately, the {source} pattern list can't be changed. WEB is an English word and likely to cause side-effects.

If you want to match WEB, you'll have to do it in your custom format:

Code: Select all

any{fn.match(/WEB/)}{source}
:idea: Please read the FAQ and How to Request Help.

casperse
Posts: 22
Joined: 19 Aug 2017, 09:17

Re: Missing {source} from release

Post by casperse » 10 Apr 2018, 10:53

Hi

I am having another problem but the solution could be the same :-)
I get files with source = WEB-DL and WEB-RIP - Sonarr translates both to WEB-DL

any{fn.match(/WEB-RIP/)}{WEB-DL}

Can I make a line that uses WEB-DL , when it finds WEB-RIP? (Isn't it the same thing?)
Also WEBDL is written as WEB-DL in the filename is that correct?

So many extension would be great to have Filebot "cleaning them up to a few"
Do you have the official list (The source pattern gets translated to?)

Br
Casperse

User avatar
rednoah
The Source
Posts: 14363
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Missing {source} from release

Post by rednoah » 10 Apr 2018, 17:16

There's no list. FileBot has built-in patterns and then just normalizes punctuation a little bit in the hope that that somehow unifies different ways of writing the same tag.

Regarding your question, you can do this:

Code: Select all

fn =~ /WEB.DL|WEB.RIP/ ? /WEB-DL/ : null
:idea: Please read the FAQ and How to Request Help.

casperse
Posts: 22
Joined: 19 Aug 2017, 09:17

Re: Missing {source} from release

Post by casperse » 11 Apr 2018, 07:57

Sorry I am using the GUI (Windows store) and get some errors on your fn =
What am I doing wrong?

Code: Select all

[{SOURCE fn =~ /WEB.DL|WEB.RIP/ ? /WEB-DL/ : null}{'.'+VF}{'.'+VC}{'.'+BITDEPTH+'Bit'}{'.'+AC}{'.'+AF}{'.'+fn.match(/DD5.1/)}{'.'+fn.match(/DDP5.1/)}{'.'+fn.match(/Atmos/)}]
Best regards
Casperse

User avatar
rednoah
The Source
Posts: 14363
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Missing {source} from release

Post by rednoah » 11 Apr 2018, 12:13

When you get "some error" maybe a screenshot of said error would be helpful? You can copy & paste info / warning messages in the Format Editor by clicking on them.

YES:

Code: Select all

{source} {fn =~ /WEB.DL|WEB.RIP/ ? /WEB-DL/ : null}
NO:

Code: Select all

{SOURCE fn =~ /WEB.DL|WEB.RIP/ ? /WEB-DL/ : null}
:idea: Please read the FAQ and How to Request Help.

casperse
Posts: 22
Joined: 19 Aug 2017, 09:17

Re: Missing {source} from release

Post by casperse » 12 Apr 2018, 16:10

Thanks!
(And sorry for leaving out the error message)

I did a testrun on a file:

Code: Select all

Showtittle.NORDiC.ENG.S01E01.720p.WEBRip.DD5.1.x264
And I added WEBRIP to the substitute list like this:

Code: Select all

[{source}{fn =~ /WEB.RIP|WEBRIP|WEBDL|WEB.DL/ ? /WEB-DL/ : null}{'.'+VF}{'.'+VC}{'.'+BITDEPTH+'Bit'}{'.'+AC}{'.'+AF}{'.'+fn.match(/DD5.1/)}{'.'+fn.match(/DDP5.1/)}]
And I get this as output:

Code: Select all

Showtitle - s01e01 - episodename [WEBRip.720p.x264.8Bit.AC3.6ch.DD5.1]
I know its stirring me in the face, and I have tried different things, but I just cant get it to substitute WEBRip with WEB-DL?
Making it case sensitive WEBRip like this

Code: Select all

[{source}{fn =~ /WEB.RIP|WEBRip|WEBDL|WEB.DL/ ? /WEB-DL/ : null}{'.'+VF}{'.'+VC}{'.'+BITDEPTH+'Bit'}{'.'+AC}{'.'+AF}{'.'+fn.match(/DD5.1/)}{'.'+fn.match(/DDP5.1/)}]

just gave me:

Code: Select all

Showtitle - s01e01 - episodename [WEBRipWEB-DL.720p.x264.8Bit.AC3.6ch.DD5.1]

User avatar
rednoah
The Source
Posts: 14363
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Missing {source} from release

Post by rednoah » 12 Apr 2018, 17:03

{source} and {fn =~ /WEB.RIP|WEBRip|WEBDL|WEB.DL/ ? /WEB-DL/ : null} are two separate things that will give you two separate values, and you probably don't want both at the same time.

Here's what I think you want but haven't properly explained yet:

1. Use your custom tag for certain patterns
2. Use source for everything else

Here's how that'll work:

Code: Select all

{
    any{fn =~ /WEB.RIP|WEBRip|WEBDL|WEB.DL/ ? /WEB-DL/ : null}{source}{'NO-SOURCE'}
}
@see viewtopic.php?f=5&t=1895
:idea: Please read the FAQ and How to Request Help.

casperse
Posts: 22
Joined: 19 Aug 2017, 09:17

Re: Missing {source} from release

Post by casperse » 12 Apr 2018, 17:12

YES! THANK YOU SO MUCH!

I have learned to use the replace, but this will make it possible to "clean" the source list with a selection of a standard selection.
Like other programs do with for example genres.

heloid
Posts: 1
Joined: 26 Sep 2018, 17:41

Re: Missing {source} from release

Post by heloid » 26 Sep 2018, 17:46

Hi - I'm having trouble understanding this - this is working for everything but "WEB" still:

Code: Select all

--def seriesFormat="D:\{Plex} - {vf} {fn =~ /.WEB.|WEB.RIP|WEBRip|WEBDL|WEB.DL/ ? /WEB-DL/ : {source}}"
Where am I going wrong?

User avatar
rednoah
The Source
Posts: 14363
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Missing {source} from release

Post by rednoah » 27 Sep 2018, 04:39

Your format is incorrect. I recommend using the FileBot Format Editor GUI for rapid prototyping.

NO:

Code: Select all

fn =~ /.WEB.|WEB.RIP|WEBRip|WEBDL|WEB.DL/ ? /WEB-DL/ : {source}
YES:

Code: Select all

fn =~ /.WEB.|WEB.RIP|WEBRip|WEBDL|WEB.DL/ ? /WEB-DL/ : source
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests