Page 1 of 1
Missing {source} from release
Posted: 20 Nov 2017, 15:04
by redbull666
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?
Re: Missing {source} from release
Posted: 20 Nov 2017, 17:21
by rednoah
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
Re: Missing {source} from release
Posted: 20 Nov 2017, 17:39
by redbull666
Ok thanks, will add ".WEB." to the blacklist

Re: Missing {source} from release
Posted: 20 Nov 2017, 18:00
by rednoah
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:
Re: Missing {source} from release
Posted: 10 Apr 2018, 10:53
by casperse
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
Re: Missing {source} from release
Posted: 10 Apr 2018, 17:16
by rednoah
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
Re: Missing {source} from release
Posted: 11 Apr 2018, 07:57
by casperse
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
Re: Missing {source} from release
Posted: 11 Apr 2018, 12:13
by rednoah
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}
Re: Missing {source} from release
Posted: 12 Apr 2018, 16:10
by casperse
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]
Re: Missing {source} from release
Posted: 12 Apr 2018, 17:03
by rednoah
{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
Re: Missing {source} from release
Posted: 12 Apr 2018, 17:12
by casperse
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.
Re: Missing {source} from release
Posted: 26 Sep 2018, 17:46
by heloid
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?
Re: Missing {source} from release
Posted: 27 Sep 2018, 04:39
by rednoah
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