forked from 0x2620/pandora
only look at media files for languages
This commit is contained in:
parent
93964086ea
commit
f97acf8e2f
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue