summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-06-02 20:48:24 -0400
committermorpheus65535 <[email protected]>2023-06-02 20:48:24 -0400
commitb02c1a7e283935b87b49f3bbfc43ff42af1303bd (patch)
tree0bc54a2aaf48cbc20a0955f954bba5727814bf7f
parentead8a3892793351fb504a1ec8fd33fa54301d8f6 (diff)
parentf1cbfd4be537148985b580b29accc6a935a2c72b (diff)
downloadbazarr-1.2.2-beta.12.tar.gz
bazarr-1.2.2-beta.12.zip
Merge remote-tracking branch 'origin/development' into developmentv1.2.2-beta.12
-rw-r--r--libs/subliminal_patch/core.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py
index 70e1004dc..8d6f54ff5 100644
--- a/libs/subliminal_patch/core.py
+++ b/libs/subliminal_patch/core.py
@@ -156,15 +156,16 @@ class _LanguageEquals(list):
raise ValueError(f"Not a valid equal tuple: {item}")
def translate(self, items: set):
- translated = set()
+ translated = items.copy()
for equals in self:
from_, to_ = equals
if to_ in items:
logger.debug("Translating %s -> %s", to_, from_)
translated.add(from_)
- else:
- translated.add(to_)
+
+ if translated == items:
+ logger.debug("Nothing to translate found")
return translated or items