Skip to content

Commit 533e369

Browse files
committed
Fix dolby info in converter SG_ServiceInfo
1 parent 8872e04 commit 533e369

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

usr/lib/enigma2/python/Components/Converter/SG_ServiceInfo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ def get_text(self):
1818
info = service and service.info()
1919
if not info:
2020
return ""
21-
audio = service.audioTracks()
2221
ret = ""
22+
audio = service.audioTracks()
2323
if audio:
2424
for i in range(audio.getNumberOfTracks()):
2525
description = audio.getTrackInfo(i).getDescription()
2626
if description and description.split()[0] in ("AC4", "AAC+", "AC3", "AC3+", "Dolby", "DTS", "DTS-HD", "HE-AAC", "WMA"):
27-
ret += "DOLBY"
27+
ret = "DOLBY"
28+
break
2829
if info.getInfo(iServiceInformation.sTXTPID) != -1:
2930
ret = self.add_str(ret, _("TEXT"))
3031
if service.subtitle().getSubtitleList():

0 commit comments

Comments
 (0)