[76] fix summary NoneError

pull/1805/head
meisnate12 4 months ago
parent 924df2112a
commit 89c075c82a

@ -1 +1 @@
1.19.1-develop75 1.19.1-develop76

@ -50,7 +50,7 @@ collections:
template: template:
- name: shared - name: shared
allowed_libraries: movie allowed_libraries: movie
image: award/razzies/winner image: award/razzie/winner
translation_key: razzie_worst translation_key: razzie_worst
- name: arr - name: arr
- name: custom - name: custom

@ -544,7 +544,11 @@
"type": "boolean" "type": "boolean"
}, },
"cache_expiration": { "cache_expiration": {
"type": "integer" "type": "integer",
"minimum": 1
},
"run_order": {
"type": "array", "uniqueItems": true, "items": {"enum": ["operations", "metadata", "collections", "overlays"]}
}, },
"asset_directory": { "asset_directory": {
"oneOf": [ "oneOf": [
@ -556,7 +560,8 @@
"type": "boolean" "type": "boolean"
}, },
"asset_depth": { "asset_depth": {
"type": "integer" "type": "integer",
"minimum": 0
}, },
"create_asset_folders": { "create_asset_folders": {
"type": "boolean" "type": "boolean"
@ -580,10 +585,11 @@
"type": "boolean" "type": "boolean"
}, },
"sync_mode": { "sync_mode": {
"type": "string" "enum": ["sync", "append"]
}, },
"minimum_items": { "minimum_items": {
"type": "integer" "type": "integer",
"minimum": 1
}, },
"default_collection_order": { "default_collection_order": {
"type": "string" "type": "string"
@ -595,7 +601,8 @@
"type": "boolean" "type": "boolean"
}, },
"run_again_delay": { "run_again_delay": {
"type": "integer" "type": "integer",
"minimum": 0
}, },
"missing_only_released": { "missing_only_released": {
"type": "boolean" "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_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 "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"]) 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 self.playlist:
if summary: if summary[1]:
if str(summary[1]) != str(self.obj.summary): if str(summary[1]) != str(self.obj.summary):
try: try:
self.obj.edit(summary=str(summary[1])) self.obj.edit(summary=str(summary[1]))
@ -3182,7 +3182,7 @@ class CollectionBuilder:
self.library._reload(self.obj) self.library._reload(self.obj)
#self.obj.batchEdits() #self.obj.batchEdits()
batch_display = "Collection Metadata Edits" 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]) self.obj.editSummary(summary[1])
batch_display += f"\nSummary ({summary[0]}) | {summary[1]:<25}" batch_display += f"\nSummary ({summary[0]}) | {summary[1]:<25}"

Loading…
Cancel
Save