Quantcast
Channel: uncategorized - Forum - FlexGet
Viewing all articles
Browse latest Browse all 376

Text plugin regex weirdness

$
0
0

@tubedogg wrote:

I basically have a text list of files that are on my disk and I'm using the text plugin to break them into entries. The text file has lines like this:

Media/TV/PremieresEnded/My Show 1/Season 1/My Show 1 - s01e01.mkv
Media/TV/PremieresEnded/My Show 2/Season 1/My Show 2 - s01e01.mkv
Media/TV/PremieresEnded/100 My Show/Season 1/100 My Show - s01e01.mkv

This is the regex I'm using for the entry's URL in the text plugin:
url: '(.*)/Season 1/.*.mkv'
What I'm looking for, and usually getting, is the path up to (but not including) /Season 1. For series whose names start with a number, though, Flexget is finding the correct url, but then giving a message:

2017-03-07 01:02 DEBUG    text          move_new_show_premiere found field: url value: Media/TV/Premieres/100 My Show
2017-03-07 01:02 DEBUG    text          move_new_show_premiere found field: current_title value: 100 My Show
2017-03-07 01:02 DEBUG    text          move_new_show_premiere found field: title value: 100 My Show - s01e01.mkv
2017-03-07 01:02 INFO     text          move_new_show_premiere Found field url again before entry was completed.                                       Adding current incomplete, but valid entry and moving to next.

Is my regex off somehow? I've been looking at it and I can't fathom how it's claiming to find another match in the same line. And the fact it's only happening when the line starts with a number makes it even weirder. I've run the regex through a couple online Python regex testers and it only ever returns the group once.

Any help would be appreciated.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 376

Trending Articles