From 6edefc84cac572d449e25055fdc0e2eb1450e763 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Wed, 25 Oct 2017 16:10:57 +0100 Subject: [PATCH] Change improve TVChaos parser. --- CHANGES.md | 7 ++++++- sickbeard/providers/tvchaosuk.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 4c606c4a..426c3343 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/sickbeard/providers/tvchaosuk.py b/sickbeard/providers/tvchaosuk.py index d4cfcb31..6748d1a4 100644 --- a/sickbeard/providers/tvchaosuk.py +++ b/sickbeard/providers/tvchaosuk.py @@ -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: