Displaying 3rd title programme in virtualzap plugin

jule

Newbie
Need a bit of help with this guys, been tearing my hair out.
I'm using Slyk HD skin with virtualzap plugin and have managed to skin virtualzap to match slyk's 3 title infobar. Problem is, the 3rd title won't display.

Anyone willing to have a look and see if you can do anything?

Be much appreciated
 

Attachments

  • plugin.rar
    9 KB · Views: 31
no one?
Anyone know anything about code below?


Code:
    def updateInfos(self):
        self.resetExitTimer()
        # update data
        current = ServiceReference(self.servicelist.getCurrentSelection())
        num = str(self.servicelist.getCurrentSelection().getChannelNum())
        self["NowChannel"].setText(current.getServiceName())
        self["NowNum"].setText(num)
        nowepg, nowstart, nowend, nowname, nowduration, percentnow = self.getEPGNowNext(current.ref,0)
        nextepg, nextstart, nextend, nextname, nextduration, percentnext = self.getEPGNowNext(current.ref,1)
        self["NowEventStart"].setText(nowstart)
        self["NextEventStart"].setText(nextstart)
        self["NowEventEnd"].setText(nowend)
        self["NextEventEnd"].setText(nextend)
        self["NowEventTitle"].setText(nowname)
        self["NextEventTitle"].setText(nextname)
        self["NowEPG"].setText(nowepg) # Only for backward compatibility
        self["NextEPG"].setText(nextepg) # Only for backward compatibility
        self["NowTime"].setText(nowduration) # Only for backward compatibility
        self["NextTime"].setText(nextduration) # Only for backward compatibility
        self["NowDuration"].setText(nowduration)
        self["NextDuration"].setText(nextduration)
        self["vzProgress"].setValue(percentnow)


def getEPGNowNext(self, ref, modus):
        # get now || next event 
        if self.epgcache is not None:
            event = self.epgcache.lookupEvent(['IBDCT', (ref.toString(), modus, -1)])
            if event:
                if event[0][4]:
                    t = localtime(event[0][1])
                    begin = event[0][1]
                    duration = event[0][2]
                    now = int(time())            
                    if modus == 0:
                        eventduration =_("+%d min") % (((event[0][1] + duration) - time()) / 60)
                        percent = int((now - begin) * 100 / duration)
                        eventname = event[0][4]
                        eventstart = strftime("%H:%M", localtime(begin))
                        eventend = strftime("%H:%M", localtime(begin + duration))
                        eventtimename = ("%02d:%02d   %s") % (t[3],t[4], event[0][4])
                    elif modus == 1:
                        eventduration =_("%d min") % (duration / 60)
                        percent = 0
                        eventname = event[0][4]
                        eventstart = strftime("%H:%M", localtime(begin))
                        eventend = strftime("%H:%M", localtime(begin + duration))
                        eventtimename = ("%02d:%02d   %s") % (t[3],t[4], event[0][4])
                    return  eventtimename, eventstart, eventend, eventname, eventduration, percent
 
Back
Top