From f97acf8e2fef1ca1205f0fa2defc345ff199705f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 6 Oct 2014 14:51:53 +0200 Subject: [PATCH] only look at media files for languages --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 5c9f4e40e..9d1bea227 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1243,7 +1243,7 @@ class Item(models.Model): self.save() def audio_tracks(self): - tracks = [f['language'] for f in self.files.filter(selected=True).values('language') if f['language']] + tracks = [f['language'] for f in self.files.filter(selected=True).filter(Q(is_video=True)|Q(is_audio=True)).values('language') if f['language']] return sorted(set(tracks)) def streams(self, track=None):