From c871e75306f8f12759b653de903a71ef100bf74f Mon Sep 17 00:00:00 2001 From: devmem Date: Wed, 15 Apr 2015 07:42:47 +0100 Subject: [PATCH] ISSUE-2556: Centralised regex rename to remove _ from filenames. Some releases (e.g. FoV) use _ in their release naming conventions. This is not removed in Sick-Beard in a central location. This change fixes that. --- sickbeard/show_name_helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sickbeard/show_name_helpers.py b/sickbeard/show_name_helpers.py index 2fef1e8e98..991ecf3990 100644 --- a/sickbeard/show_name_helpers.py +++ b/sickbeard/show_name_helpers.py @@ -188,7 +188,9 @@ def isGoodResult(name, show, log=True): """ Use an automatically-created regex to make sure the result actually is the show it claims to be """ - + # + # Change _ to . to fix releases being rejected whetre the naming convention is to use _ (e.g. FoV) + name = re.sub('_', '.', name) all_show_names = allPossibleShowNames(show) showNames = map(sanitizeSceneName, all_show_names) + all_show_names