Exemplo n.º 1
0
    def P_eventview(self, request):
        event = {}
        event['sref'] = ""
        event['title'] = ""
        event['picon'] = ""
        event['shortdesc'] = ""
        event['longdesc'] = ""
        event['begin'] = 0
        event['end'] = 0
        event['duration'] = 0
        event['channel'] = ""

        eventid = getUrlArg(request, "eventid")
        ref = getUrlArg(request, "eventref")
        if ref and eventid:
            event = getEvent(ref, eventid)['event']
            event['id'] = eventid
            event['picon'] = getPicon(ref)
            event['end'] = event['begin'] + event['duration']
            event['duration'] = int(event['duration'] / 60)
            event['start'] = event['begin']
            event['begin'] = strftime("%H:%M", (localtime(event['begin'])))
            event['end'] = strftime("%H:%M", (localtime(event['end'])))

        return {"event": event}
Exemplo n.º 2
0
 def P_event(self, request):
     event = getEvent(getUrlArg(request, "sref"),
                      getUrlArg(request, "idev"))
     event['event'][
         'recording_margin_before'] = config.recording.margin_before.value
     event['event'][
         'recording_margin_after'] = config.recording.margin_after.value
     event['at'] = HASAUTOTIMER
     event['transcoding'] = TRANSCODING
     event[
         'moviedb'] = config.OpenWebif.webcache.moviedb.value if config.OpenWebif.webcache.moviedb.value else EXT_EVENT_INFO_SOURCE
     event[
         'extEventInfoProvider'] = extEventInfoProvider = getEventInfoProvider(
             event['moviedb'])
     return event
Exemplo n.º 3
0
	def P_event(self, request):
		event = getEvent(getUrlArg(request, "sref"), getUrlArg(request, "idev"))
		event['event']['recording_margin_before'] = config.recording.margin_before.value
		event['event']['recording_margin_after'] = config.recording.margin_after.value
		at = False
		try:
			from Plugins.Extensions.AutoTimer.AutoTimer import AutoTimer  # noqa: F401
			at = True
		except ImportError:
			pass
		event['at'] = at
		event['transcoding'] = TRANSCODING
		event['moviedb'] = config.OpenWebif.webcache.moviedb.value if config.OpenWebif.webcache.moviedb.value else EXT_EVENT_INFO_SOURCE
		event['extEventInfoProvider'] = extEventInfoProvider = getEventInfoProvider(event['moviedb'])
		return event
Exemplo n.º 4
0
 def P_event(self, request):
     event = getEvent(request.args["sref"][0], request.args["idev"][0])
     event['event'][
         'recording_margin_before'] = config.recording.margin_before.value
     event['event'][
         'recording_margin_after'] = config.recording.margin_after.value
     at = False
     try:
         from Plugins.Extensions.AutoTimer.AutoTimer import AutoTimer  # noqa: F401
         at = True
     except ImportError:
         pass
     event['at'] = at
     event['transcoding'] = getHaveTranscoding()
     if config.OpenWebif.webcache.moviedb.value:
         event['moviedb'] = config.OpenWebif.webcache.moviedb.value
     else:
         event['moviedb'] = 'IMDb'
     return event