Change relax strict mode from subtitle languages and show unknown.png flag for 'Undetermined' subtitle languages.

The strict parameter for languages simply raises a ValueError instead of returning Undetermined as language if unknown language is used.
This commit is contained in:
Prinz23 2018-02-18 01:29:19 +00:00 committed by JackDandy
parent f69ebe97f2
commit ff04e234d0
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,11 @@
### 0.14.3 (2018-02-13 13:00:00 UTC)
### 0.14.4 (2018-02-15 13:00:00 UTC)
Change relax strict mode from subtitle languages and show unknown.png flag for 'Undetermined' subtitle languages.
The strict parameter for languages simply raises a ValueError instead of returning Undetermined as language if unknown language is used.
### 0.14.3 (2018-02-13 13:00:00 UTC)
Change improve thetvdb api response handling

View file

@ -94,9 +94,11 @@
#if $sg_var('USE_SUBTITLES') and $show.subtitles
<td class="col-subtitles" align="center">
#if $ep['subtitles']
#for $sub_lang in subliminal.language.language_list($ep['subtitles'].split(','))
#for $sub_lang in subliminal.language.language_list($ep['subtitles'].split(','), strict=False)
#if '' != sub_lang.alpha2
<img src="$sbRoot/images/flags/${sub_lang.alpha2}.png" width="16" height="11" alt="${sub_lang}">
#elif 'und' == sub_lang.alpha3
<img src="$sbRoot/images/flags/unknown.png" width="16" height="11" alt="undetermined">
#end if
#end for
#end if