1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-27 01:57:33 +00:00

Ignore path mappings if both sides are the same.

This commit is contained in:
Louis Vézina 2020-08-20 22:12:47 -04:00
parent ebde79a8cd
commit 138af20bb6

View file

@ -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: