mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[76] fix summary NoneError
This commit is contained in:
parent
924df2112a
commit
89c075c82a
4 changed files with 17 additions and 10 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.19.1-develop75
|
||||
1.19.1-develop76
|
||||
|
|
|
@ -50,7 +50,7 @@ collections:
|
|||
template:
|
||||
- name: shared
|
||||
allowed_libraries: movie
|
||||
image: award/razzies/winner
|
||||
image: award/razzie/winner
|
||||
translation_key: razzie_worst
|
||||
- name: arr
|
||||
- name: custom
|
||||
|
|
|
@ -544,7 +544,11 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"cache_expiration": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"run_order": {
|
||||
"type": "array", "uniqueItems": true, "items": {"enum": ["operations", "metadata", "collections", "overlays"]}
|
||||
},
|
||||
"asset_directory": {
|
||||
"oneOf": [
|
||||
|
@ -556,7 +560,8 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"asset_depth": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"create_asset_folders": {
|
||||
"type": "boolean"
|
||||
|
@ -580,10 +585,11 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"sync_mode": {
|
||||
"type": "string"
|
||||
"enum": ["sync", "append"]
|
||||
},
|
||||
"minimum_items": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"default_collection_order": {
|
||||
"type": "string"
|
||||
|
@ -595,7 +601,8 @@
|
|||
"type": "boolean"
|
||||
},
|
||||
"run_again_delay": {
|
||||
"type": "integer"
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"missing_only_released": {
|
||||
"type": "boolean"
|
||||
|
|
|
@ -3165,10 +3165,10 @@ class CollectionBuilder:
|
|||
elif "tvdb_movie_details" in self.summaries: summary = ("tvdb_movie_details", self.summaries["tvdb_movie_details"])
|
||||
elif "tvdb_show_details" in self.summaries: summary = ("tvdb_show_details", self.summaries["tvdb_show_details"])
|
||||
elif "tmdb_show_details" in self.summaries: summary = ("tmdb_show_details", self.summaries["tmdb_show_details"])
|
||||
else: summary = None
|
||||
else: summary = (None, None)
|
||||
|
||||
if self.playlist:
|
||||
if summary:
|
||||
if summary[1]:
|
||||
if str(summary[1]) != str(self.obj.summary):
|
||||
try:
|
||||
self.obj.edit(summary=str(summary[1]))
|
||||
|
@ -3182,7 +3182,7 @@ class CollectionBuilder:
|
|||
self.library._reload(self.obj)
|
||||
#self.obj.batchEdits()
|
||||
batch_display = "Collection Metadata Edits"
|
||||
if summary and str(summary[1]) != str(self.obj.summary):
|
||||
if summary[1] and str(summary[1]) != str(self.obj.summary):
|
||||
self.obj.editSummary(summary[1])
|
||||
batch_display += f"\nSummary ({summary[0]}) | {summary[1]:<25}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue