Fixed always true subtitle locale comparison in GetFormat(...)

This commit is contained in:
bytedream 2022-02-21 16:59:57 +01:00
parent 86368bf985
commit 3285d458be

View file

@ -130,8 +130,8 @@ func (e *Episode) GetFormat(resolution string, subtitle LOCALE, hardsub bool) (*
foundStream = stream foundStream = stream
break break
} else if !hardsub { } else if !hardsub {
for _, subtitle := range stream.Subtitles { for _, streamSubtitle := range stream.Subtitles {
if subtitle.Locale == subtitle.Locale { if streamSubtitle.Locale == subtitle {
foundStream = stream foundStream = stream
break break
} }