diff --git a/resources/lib/play_utils.py b/resources/lib/play_utils.py index 38fa283..a99a5ea 100644 --- a/resources/lib/play_utils.py +++ b/resources/lib/play_utils.py @@ -859,6 +859,7 @@ def audio_subs_pref(url, list_item, media_source, item_id, audio_stream_index, s if 'Audio' in stream['Type']: codec = stream.get('Codec', None) channel_layout = stream.get('ChannelLayout', "") + title = stream.get('Title', '') if not codec: # Probably tvheadend and has no other info @@ -871,6 +872,10 @@ def audio_subs_pref(url, list_item, media_source, item_id, audio_stream_index, s # Track doesn't include language track = "%s - %s %s" % (index, codec, channel_layout) + # Add title if available + if title: + track = "%s - %s" % (track, title) + audio_streams_list[track] = index audio_streams.append(track) audio_streams_data.append(stream)