mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Update FieldStrategyOverwrite to work when scene has no existing URL (#4412)
This commit is contained in:
@@ -392,7 +392,7 @@ func getScenePartial(scene *models.Scene, scraped *scraper.ScrapedScene, fieldOp
|
||||
switch getFieldStrategy(fieldOptions["url"]) {
|
||||
case FieldStrategyOverwrite:
|
||||
// only overwrite if not equal
|
||||
if len(sliceutil.Exclude(scene.URLs.List(), scraped.URLs)) != 0 {
|
||||
if len(sliceutil.Exclude(scraped.URLs, scene.URLs.List())) != 0 {
|
||||
partial.URLs = &models.UpdateStrings{
|
||||
Values: scraped.URLs,
|
||||
Mode: models.RelationshipUpdateModeSet,
|
||||
|
||||
Reference in New Issue
Block a user