Fix subtitles not loading (#2987)

This commit is contained in:
CJ 2022-10-09 18:09:28 -05:00 committed by GitHub
parent bb250d1232
commit 351dcb708b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))