mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fixed always true subtitle locale comparison in GetFormat(...)
This commit is contained in:
parent
86368bf985
commit
3285d458be
1 changed files with 2 additions and 2 deletions
|
|
@ -130,8 +130,8 @@ func (e *Episode) GetFormat(resolution string, subtitle LOCALE, hardsub bool) (*
|
|||
foundStream = stream
|
||||
break
|
||||
} else if !hardsub {
|
||||
for _, subtitle := range stream.Subtitles {
|
||||
if subtitle.Locale == subtitle.Locale {
|
||||
for _, streamSubtitle := range stream.Subtitles {
|
||||
if streamSubtitle.Locale == subtitle {
|
||||
foundStream = stream
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue