Skip to content

Commit

Permalink
Fix dolby info in converter SG_ServiceInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Taapat committed Nov 19, 2023
1 parent 8872e04 commit 533e369
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usr/lib/enigma2/python/Components/Converter/SG_ServiceInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ def get_text(self):
info = service and service.info()
if not info:
return ""
audio = service.audioTracks()
ret = ""
audio = service.audioTracks()
if audio:
for i in range(audio.getNumberOfTracks()):
description = audio.getTrackInfo(i).getDescription()
if description and description.split()[0] in ("AC4", "AAC+", "AC3", "AC3+", "Dolby", "DTS", "DTS-HD", "HE-AAC", "WMA"):
ret += "DOLBY"
ret = "DOLBY"
break
if info.getInfo(iServiceInformation.sTXTPID) != -1:
ret = self.add_str(ret, _("TEXT"))
if service.subtitle().getSubtitleList():
Expand Down

0 comments on commit 533e369

Please sign in to comment.