mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-24 21:43:07 +00:00
fix collections being deleted under certain conditions when using translations
This commit is contained in:
parent
8d5b59cdab
commit
83db5397d6
2 changed files with 3 additions and 2 deletions
|
@ -16,5 +16,6 @@ Fixed `amazon` ID in `streaming` when region is `CA`
|
|||
Catch bad ID data from Plex
|
||||
Fixes `- git` file calls
|
||||
Ignore empty Environment Variables
|
||||
Fixes collections being deleted under certain conditions when using translations
|
||||
|
||||
Various other Minor Fixes
|
|
@ -370,7 +370,7 @@ class CollectionBuilder:
|
|||
trans_summary = apply_vars(trans_summary, trans_vars, trans_key, self.limit)
|
||||
|
||||
delete_cols = []
|
||||
if (self.name and self.name != en_name) or (not self.name and en_name != trans_name):
|
||||
if (self.name and self.name != en_name) or (not self.name and trans_name and en_name != trans_name):
|
||||
delete_cols.append(en_name)
|
||||
if self.name and self.name != trans_name and en_name != trans_name:
|
||||
delete_cols.append(trans_name)
|
||||
|
@ -390,7 +390,7 @@ class CollectionBuilder:
|
|||
|
||||
if not self.name:
|
||||
self.name = trans_name if trans_name else en_name
|
||||
logger.info(self.name)
|
||||
logger.info(f"Final Name: {self.name}")
|
||||
if en_summary or trans_summary:
|
||||
self.summaries["translation"] = trans_summary if trans_summary else en_summary
|
||||
|
||||
|
|
Loading…
Reference in a new issue