Add stash_ids to performer, scene, studio import/export (#1916)

* add stash_ids to performer, scene, studio import/export
This commit is contained in:
7dJx1qP
2021-10-28 20:12:39 -04:00
committed by GitHub
parent 87036a07bc
commit c6a326ca64
13 changed files with 156 additions and 55 deletions

View File

@@ -101,6 +101,12 @@ func (i *Importer) PostImport(id int) error {
}
}
if len(i.Input.StashIDs) > 0 {
if err := i.ReaderWriter.UpdateStashIDs(id, i.Input.StashIDs); err != nil {
return fmt.Errorf("error setting stash id: %v", err)
}
}
if err := i.ReaderWriter.UpdateAliases(id, i.Input.Aliases); err != nil {
return fmt.Errorf("error setting tag aliases: %v", err)
}