mirror of
https://github.com/BillyOutlast/MidnightRider-Stash.git
synced 2026-10-12 02:25:09 +00:00
Fix custom fields conversion to work for both creating and updating performers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
name: CompleteTheStash
|
||||
description: Finds missing scenes for selected performers and creates missing scene metadata to another missing Stash instance. You can use either StashDB or TPDB or both as a source for missing scenes.
|
||||
version: 0.6.2
|
||||
version: 0.6.3
|
||||
url: https://github.com/MinasukiHikimuna/MidnightRider-Stash/
|
||||
exec:
|
||||
- python
|
||||
|
||||
@@ -165,6 +165,8 @@ class StashCompleter:
|
||||
)
|
||||
|
||||
performer_in['id'] = performer_id
|
||||
if performer_in['custom_fields']:
|
||||
performer_in['custom_fields'] = { "full": performer_in['custom_fields'] }
|
||||
self.missing_stash_client.update_performer(performer_in)
|
||||
return performer_id
|
||||
|
||||
@@ -194,11 +196,6 @@ class StashCompleter:
|
||||
if key_to_delete in performer_in:
|
||||
del performer_in[key_to_delete]
|
||||
|
||||
if performer_in['custom_fields'] is not None:
|
||||
custom_fields = performer_in['custom_fields']
|
||||
del performer_in['custom_fields']
|
||||
performer_in['custom_fields'] = { "full": custom_fields }
|
||||
|
||||
return performer_in
|
||||
|
||||
def find_selected_local_performers(self):
|
||||
@@ -269,7 +266,6 @@ class StashCompleter:
|
||||
for stash_id in scene["stash_ids"]
|
||||
if stash_id.get("endpoint") == self.config.get("stashboxEndpoint")
|
||||
}
|
||||
print(local_scene_stash_ids)
|
||||
|
||||
scenes_to_destroy = []
|
||||
for missing_scene in scenes_in_missing_stash:
|
||||
@@ -283,7 +279,6 @@ class StashCompleter:
|
||||
)
|
||||
if missing_scene_stash_id in local_scene_stash_ids:
|
||||
scenes_to_destroy.append(missing_scene)
|
||||
print(scenes_to_destroy)
|
||||
|
||||
# Destroy missing scenes that exist in local stash
|
||||
for scene in scenes_to_destroy:
|
||||
|
||||
Reference in New Issue
Block a user