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:
@@ -221,3 +221,13 @@ func (s *Scenes) Append(o interface{}) {
|
||||
func (s *Scenes) New() interface{} {
|
||||
return &Scene{}
|
||||
}
|
||||
|
||||
type SceneCaption struct {
|
||||
LanguageCode string `json:"language_code"`
|
||||
Filename string `json:"filename"`
|
||||
CaptionType string `json:"caption_type"`
|
||||
}
|
||||
|
||||
func (c SceneCaption) Path(scenePath string) string {
|
||||
return filepath.Join(filepath.Dir(scenePath), c.Filename)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user