mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Performer urls (#4958)
* Populate URLs from legacy fields * Return nil properly in xpath/json scrapers * Improve migration logging
This commit is contained in:
@@ -163,6 +163,12 @@ func (i *Input) populateURL() {
|
||||
if i.Scene != nil && i.Scene.URL == nil && len(i.Scene.URLs) > 0 {
|
||||
i.Scene.URL = &i.Scene.URLs[0]
|
||||
}
|
||||
if i.Gallery != nil && i.Gallery.URL == nil && len(i.Gallery.URLs) > 0 {
|
||||
i.Gallery.URL = &i.Gallery.URLs[0]
|
||||
}
|
||||
if i.Performer != nil && i.Performer.URL == nil && len(i.Performer.URLs) > 0 {
|
||||
i.Performer.URL = &i.Performer.URLs[0]
|
||||
}
|
||||
}
|
||||
|
||||
// simple type definitions that can help customize
|
||||
|
||||
Reference in New Issue
Block a user