mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Gallery URLs (#4114)
* Initial backend changes * Fix unit tests * UI changes * Fix missing URL filters
This commit is contained in:
@@ -65,8 +65,10 @@ func (i *Importer) galleryJSONToGallery(galleryJSON jsonschema.Gallery) models.G
|
||||
if galleryJSON.Details != "" {
|
||||
newGallery.Details = galleryJSON.Details
|
||||
}
|
||||
if galleryJSON.URL != "" {
|
||||
newGallery.URL = galleryJSON.URL
|
||||
if len(galleryJSON.URLs) > 0 {
|
||||
newGallery.URLs = models.NewRelatedStrings(galleryJSON.URLs)
|
||||
} else if galleryJSON.URL != "" {
|
||||
newGallery.URLs = models.NewRelatedStrings([]string{galleryJSON.URL})
|
||||
}
|
||||
if galleryJSON.Date != "" {
|
||||
d, err := models.ParseDate(galleryJSON.Date)
|
||||
|
||||
Reference in New Issue
Block a user