mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Use basename as title if empty when scraping by fragment (#3040)
* Fallback to file basename if title empty in scrape * Populate dialog from basename if title empty
This commit is contained in:
@@ -2,6 +2,7 @@ package models
|
||||
|
||||
import (
|
||||
"context"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
@@ -128,7 +129,7 @@ func (g Gallery) GetTitle() string {
|
||||
return g.Title
|
||||
}
|
||||
|
||||
return g.Path
|
||||
return filepath.Base(g.Path)
|
||||
}
|
||||
|
||||
// DisplayName returns a display name for the scene for logging purposes.
|
||||
|
||||
Reference in New Issue
Block a user