From 3285d458bef1db71ba5cc0cf3615b4933ce22418 Mon Sep 17 00:00:00 2001 From: bytedream Date: Mon, 21 Feb 2022 16:59:57 +0100 Subject: [PATCH] Fixed always true subtitle locale comparison in GetFormat(...) --- episode.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/episode.go b/episode.go index 07b8616..12d21b9 100644 --- a/episode.go +++ b/episode.go @@ -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 }