Ignore path mappings if both sides are the same.

pull/1096/head
Louis Vézina 4 years ago
parent ebde79a8cd
commit 138af20bb6

@ -16,8 +16,8 @@ class PathMappings:
self.path_mapping_movies = [] self.path_mapping_movies = []
def update(self): def update(self):
self.path_mapping_series = ast.literal_eval(settings.general.path_mappings) self.path_mapping_series = [x for x in ast.literal_eval(settings.general.path_mappings) if x[0] != x[1]]
self.path_mapping_movies = ast.literal_eval(settings.general.path_mappings_movie) 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): def path_replace(self, path):
if path is None: if path is None:

Loading…
Cancel
Save