mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
[Feature] Images new fields : URL & Date (#3015)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -85,6 +85,13 @@ func (i *Importer) imageJSONToImage(imageJSON jsonschema.Image) models.Image {
|
||||
if imageJSON.Rating != 0 {
|
||||
newImage.Rating = &imageJSON.Rating
|
||||
}
|
||||
if imageJSON.URL != "" {
|
||||
newImage.URL = imageJSON.URL
|
||||
}
|
||||
if imageJSON.Date != "" {
|
||||
d := models.NewDate(imageJSON.Date)
|
||||
newImage.Date = &d
|
||||
}
|
||||
|
||||
return newImage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user