From 138af20bb6423e79a22b5670047f54495e5decbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Thu, 20 Aug 2020 22:12:47 -0400 Subject: [PATCH] Ignore path mappings if both sides are the same. --- bazarr/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/helper.py b/bazarr/helper.py index 4d7f1b432..4307affde 100644 --- a/bazarr/helper.py +++ b/bazarr/helper.py @@ -16,8 +16,8 @@ class PathMappings: self.path_mapping_movies = [] def update(self): - self.path_mapping_series = ast.literal_eval(settings.general.path_mappings) - self.path_mapping_movies = ast.literal_eval(settings.general.path_mappings_movie) + self.path_mapping_series = [x for x in ast.literal_eval(settings.general.path_mappings) if x[0] != x[1]] + self.path_mapping_movies = [x for x in ast.literal_eval(settings.general.path_mappings_movie) if x[0] != x[1]] def path_replace(self, path): if path is None: