Change improve TVChaos parser.

This commit is contained in:
JackDandy 2017-10-25 16:10:57 +01:00
parent eb07ec6549
commit 6edefc84ca
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,9 @@
### 0.12.33 (2017-10-12 13:00:00 UTC)
### 0.12.34 (2017-10-25 15:20:00 UTC)
* Change improve TVChaos parser
### 0.12.33 (2017-10-12 13:00:00 UTC)
* Change improve handling of torrent auth failures

View file

@ -165,7 +165,7 @@ class TVChaosUKProvider(generic.TorrentProvider):
for yr in years:
title = re.sub('\{\{yr\}\}', yr, title, count=1)
date_re = '(?i)([(\s]*)((?:\d+\s)?)([adfjmnos]\w{2,}\s+)((?:19|20)\d\d)([)\s]*)'
date_re = '(?i)([(\s.]*)((?:\d+[\s.]*(?:st|nd|rd|th)?[\s.])?)([adfjmnos]\w{2,}[\s.]+)((?:19|20)\d\d)([)\s.]*)'
dated = re.findall(date_re, title)
dnew = None
for d in dated: