Hello to all,
I have a problem with ServiceInfo.py HasSubtitles converter....
It just doesnt work at all. Sometimes it show corretly that there are subtitles present but most of the time it doesnt work at all.
Can that be fixed?
Hello to all,
I have a problem with ServiceInfo.py HasSubtitles converter....
It just doesnt work at all. Sometimes it show corretly that there are subtitles present but most of the time it doesnt work at all.
Can that be fixed?
This is because some some subtitles are retrived from "Text TV" so if you add this code you will pickup most of the subtitles. And of cause if Text TV is avalible
<widget backgroundColor="dark" font="Regular;24" position="595,993" render="FixedLabel" size="50,28" source="session.CurrentService" text="SUB" transparent="1">
<convert type="ServiceInfo">HasTelext</convert>
<convert type="ConditionalShowHide" />
</widget>
Please test the following two changes an report if it works better.
--- a/usr/lib/enigma2/python/Components/Converter/ServiceInfo.py
+++ b/usr/lib/enigma2/python/Components/Converter/ServiceInfo.py
@@ -50,7 +50,7 @@ class ServiceInfo(Converter, object):
"Sid": (self.SID, (iPlayableService.evUpdatedInfo,)),
"Framerate": (self.FRAMERATE, (iPlayableService.evVideoSizeChanged, iPlayableService.evVideoFramerateChanged)),
"TransferBPS": (self.TRANSFERBPS, (iPlayableService.evUpdatedInfo,)),
- "HasSubtitles": (self.HAS_SUBTITLES, (iPlayableService.evUpdatedInfo,)),
+ "HasSubtitles": (self.HAS_SUBTITLES, (iPlayableService.evUpdatedInfo, iPlayableService.evSubtitleListChanged)),
}[type]
self.need_wa = iPlayableService.evVideoSizeChanged in self.interesting_events
--- a/usr/lib/enigma2/python/Components/Sources/CurrentService.py
+++ b/usr/lib/enigma2/python/Components/Sources/CurrentService.py
@@ -13,6 +13,7 @@ class CurrentService(PerServiceBase, Source):
iPlayableService.evEnd: self.serviceEvent,
# FIXME: we should check 'interesting_events'
# which is not always provided.
+iPlayableService.evSubtitleListChanged : self.serviceEvent,
iPlayableService.evUpdatedInfo: self.serviceEvent,
iPlayableService.evUpdatedEventInfo: self.serviceEvent,
iPlayableService.evCuesheetChanged: self.serviceEvent,
Alles anzeigen
But please make sure that you pay attention to the formatting/indentation of the python files. Otherwise enigma2 might not start anymore.
Yes thanks Ghost this fixed the subtitles
Thanks Ghost this fixed a longtime problem in 5 seconds by you
And thanks for the thumb @gutemine