Flexget / Flexget

The official FlexGet repository

Home Page:http://www.flexget.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hyphen in the Episode/ID Regexp (Reopening #2865)

tunaflsh opened this issue · comments

Expected behaviour:

As an example from the documentation for regexps ep_regexp: (\d\d)-(\d\d\d) should correctly identify season number and episode number.

Actual behaviour:

It does not identify the season/episode and reports but cannot find a(n) `ep` style identifier.

Proposed solution:

This has already been discussed in #2865 but the conversation quickly derailed to adjacent topics. Although there are workarounds, I think this issue is still valid.

Either fix the documentation or replace the regex [\W_]+ with (?:[^\w-]|_)+ in:

data_parts = re.split(r'[\W_]+', data_stripped)