mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Caption support (#2462)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"github.com/stashapp/stash/pkg/job"
|
||||
"github.com/stashapp/stash/pkg/logger"
|
||||
"github.com/stashapp/stash/pkg/models"
|
||||
"github.com/stashapp/stash/pkg/scene"
|
||||
)
|
||||
|
||||
func isGallery(pathname string) bool {
|
||||
@@ -19,6 +20,10 @@ func isGallery(pathname string) bool {
|
||||
return fsutil.MatchExtension(pathname, gExt)
|
||||
}
|
||||
|
||||
func isCaptions(pathname string) bool {
|
||||
return fsutil.MatchExtension(pathname, scene.CaptionExts)
|
||||
}
|
||||
|
||||
func isVideo(pathname string) bool {
|
||||
vidExt := config.GetInstance().GetVideoExtensions()
|
||||
return fsutil.MatchExtension(pathname, vidExt)
|
||||
|
||||
Reference in New Issue
Block a user