From 2c293e36170ab13ff3ef6173919ff8d84f2ecdda Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 30 Jan 2015 13:09:45 -0200 Subject: [PATCH] Improve code check for list comprehensions As discussed here: https://github.com/SiCKRAGETV/sickrage-issues/issues/457 --- gui/slick/interfaces/default/displayShow.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/slick/interfaces/default/displayShow.tmpl b/gui/slick/interfaces/default/displayShow.tmpl index c5f5facd..2e29c32e 100644 --- a/gui/slick/interfaces/default/displayShow.tmpl +++ b/gui/slick/interfaces/default/displayShow.tmpl @@ -508,7 +508,7 @@ #if $sickbeard.USE_SUBTITLES and $show.subtitles: #if $epResult["subtitles"]: - #for $sub_lang in subliminal.language.language_list([x.strip() for x in $epResult["subtitles"].split(',')]): + #for $sub_lang in subliminal.language.language_list([x.strip() for x in $epResult["subtitles"].split(',') if x != ""]): #if sub_lang.alpha2 != "" ${sub_lang} #end if