From 7b21ca9e434245240942156aa4830b33462438f5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 6 Aug 2011 14:10:54 +0000 Subject: [PATCH] language2 --- pandora/item/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/item/tasks.py b/pandora/item/tasks.py index bb77b03a..79a9a9cb 100644 --- a/pandora/item/tasks.py +++ b/pandora/item/tasks.py @@ -45,8 +45,10 @@ def load_subtitles(itemId): languages = [f.language for f in item.files.filter(is_main=True, is_subtitle=True, available=True)] if languages: - if 'en' in languages or '' in languages: + if 'en' in languages: language = 'en' + elif '' in languages: + language = '' else: language = languages[0] for f in item.files.filter(is_main=True, is_subtitle=True,