mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Remove streaming resolutions over max configured (#1187)
This commit is contained in:
@@ -84,6 +84,14 @@ func (s Scene) GetHash(hashAlgorithm HashAlgorithm) string {
|
||||
panic("unknown hash algorithm")
|
||||
}
|
||||
|
||||
func (s Scene) GetMinResolution() int64 {
|
||||
if s.Width.Int64 < s.Height.Int64 {
|
||||
return s.Width.Int64
|
||||
}
|
||||
|
||||
return s.Height.Int64
|
||||
}
|
||||
|
||||
// SceneFileType represents the file metadata for a scene.
|
||||
type SceneFileType struct {
|
||||
Size *string `graphql:"size" json:"size"`
|
||||
|
||||
Reference in New Issue
Block a user