From 5de33ef723f64a96e44d655a9711e6d80b3e775a 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 bb77b03..79a9a9c 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,