mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix subtitles not loading (#2987)
This commit is contained in:
@@ -367,7 +367,7 @@ func (rs sceneRoutes) Caption(w http.ResponseWriter, r *http.Request, lang strin
|
|||||||
|
|
||||||
for _, caption := range captions {
|
for _, caption := range captions {
|
||||||
if lang != caption.LanguageCode || ext != caption.CaptionType {
|
if lang != caption.LanguageCode || ext != caption.CaptionType {
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
sub, err := video.ReadSubs(caption.Path(s.Path))
|
sub, err := video.ReadSubs(caption.Path(s.Path))
|
||||||
|
|||||||
Reference in New Issue
Block a user