Skip to content

Commit

Permalink
[InfoBarGenerics] subservices: add service name
Browse files Browse the repository at this point in the history
Item will now read...
servicename, event time, event title

Having the event time in second position means...
1) no addition delimiter is needed, keeping things as short as possible,
2) event time won't get forced of the screen by extra long event titles.

(cherry picked from commit 0059fd8)
  • Loading branch information
Huevos authored and Ev0-BH committed Nov 28, 2021
1 parent 57cf477 commit 3891f35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/python/Screens/InfoBarGenerics.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ def getActiveSubservicesForCurrentChannel(current_service):
if title and "Sendepause" not in title:
starttime = datetime.datetime.fromtimestamp(event[0]).strftime('%H:%M')
endtime = datetime.datetime.fromtimestamp(event[0] + event[1]).strftime('%H:%M')
current_show_name = title + " " + str(starttime) + "-" + str(endtime)
activeSubservices.append((current_show_name, subservice))
servicename = eServiceReference(subservice).getServiceName()
schedule = str(starttime) + "-" + str(endtime)
activeSubservices.append((servicename + " " + schedule + " " + title, subservice))
return activeSubservices


Expand Down

0 comments on commit 3891f35

Please sign in to comment.