You can do something like this:
quality: 1080p webrip+
if:
- "('\.WEB\.H264' in title)":
delay: 2 hours
assuming WEB.x264 is only a webdl and in the 2 hours there will be a WEBRIP
and if it's not good, maybe you can check parsing with guessit (external package)
usage:
parsing:
series: guessit
Maybe guessit can decide better if something has better quality or not
here some examples from guessit:
p@~/flexget-dev $ ./bin/guessit ..////TV/The.Last.Ship.S05E03.720p.WEBRip.x264-TBS/the.last.ship.s05e03.720p.webrip.x264-tbs.mkv
For: ..////TV/The.Last.Ship.S05E03.720p.WEBRip.x264-TBS/the.last.ship.s05e03.720p.webrip.x264-tbs.mkv
GuessIt found: {
"season": 5,
"episode": 3,
"screen_size": "720p",
"format": "WEBRip",
"video_codec": "h264",
"title": "the last ship",
"release_group": "tbs",
"container": "mkv",
"mimetype": "video/x-matroska",
"type": "episode"
}
p@~/flexget-dev $ ./bin/guessit ..////TV/Bodyguard.S01E06.720p.AMZN.WEB-DL.DDP2.0.H.264-NTb.mkv
For: ..////TV/Bodyguard.S01E06.720p.AMZN.WEB-DL.DDP2.0.H.264-NTb.mkv
GuessIt found: {
"title": "Bodyguard",
"season": 1,
"episode": 6,
"screen_size": "720p",
"streaming_service": "Amazon Prime",
"format": "WEB-DL",
"audio_codec": "EAC3",
"audio_channels": "2.0",
"video_codec": "h264",
"release_group": "NTb",
"container": "mkv",
"mimetype": "video/x-matroska",
"type": "episode"
}
p@~/flexget-dev $ ./bin/guessit ..////TV/Tom.Clancys.Jack.Ryan.S01E08.720p.WEB.H264-MEMENTO/tom.clancys.jack.ryan.s01e08.720p.web.h264-memento.mkv
For: ..////TV/Tom.Clancys.Jack.Ryan.S01E08.720p.WEB.H264-MEMENTO/tom.clancys.jack.ryan.s01e08.720p.web.h264-memento.mkv
GuessIt found: {
"season": 1,
"episode": 8,
"screen_size": "720p",
"format": "WEB-DL",
"video_codec": "h264",
"title": "tom clancys jack ryan",
"release_group": "memento",
"container": "mkv",
"mimetype": "video/x-matroska",
"type": "episode"
}
p@palinkade2 ~/flexget-dev $ ./bin/guessit ..////TV/The.Outpost.S01E07.720p.WEB.h264-TBS/the.outpost.s01e07.720p.web.h264-tbs.mkv
For: ..////TV/The.Outpost.S01E07.720p.WEB.h264-TBS/the.outpost.s01e07.720p.web.h264-tbs.mkv
GuessIt found: {
"season": 1,
"episode": 7,
"screen_size": "720p",
"format": "WEB-DL",
"video_codec": "h264",
"title": "the outpost",
"release_group": "tbs",
"container": "mkv",
"mimetype": "video/x-matroska",
"type": "episode"
}