Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Condition for regex not matching

$
0
0

@frumpymoons wrote:

Hello,

so I use the manipulate plugin to extract my urls from the content field.
Sometimes my regex doesn't hit and this results in the whole content field == url field.

manipulate:
  - url:
      from: 'content'
      extract: \b([\w-]+:\/\/mystring\/\w+\/\w+\/)(?:(?:\w+[.])+[sS]\d{2}[eE]\d{2}[.]720p)

So if mystring isn't in the content field flexget sets the url to the whole content. Is there a simple way around it?
I just started using regex and I am sure this is a messy one but it works.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles