Ejemplo n.º 1
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
     return event
Ejemplo n.º 2
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'] = ""

        if "eventid" in request.args.keys():
            eventid = request.args["eventid"][0]
        if "eventref" in request.args.keys():
            ref = request.args["eventref"][0]
        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['begin'] = strftime("%H:%M", (localtime(event['begin'])))
            event['end'] = strftime("%H:%M", (localtime(event['end'])))

        return {"event": event}
Ejemplo n.º 3
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"] = ""

        if "eventid" in request.args.keys():
            eventid = request.args["eventid"][0]
        if "eventref" in request.args.keys():
            ref = request.args["eventref"][0]
        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["begin"] = strftime("%H:%M", (localtime(event["begin"])))
            event["end"] = strftime("%H:%M", (localtime(event["end"])))

        return {"event": event}
Ejemplo n.º 4
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'] = ""

		if "eventid" in request.args.keys():
			eventid = request.args["eventid"][0]
		if "eventref" in request.args.keys():
			ref = request.args["eventref"][0]
		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['begin'] = strftime("%H:%M", (localtime(event['begin'])))
			event['end'] = strftime("%H:%M", (localtime(event['end'])))

		return { "event": event }
Ejemplo n.º 5
0
 def P_event(self, request):
     margin_before = comp_config.recording.margin_before.value
     margin_after = comp_config.recording.margin_after.value
     event = getEvent(request.args["sref"][0], request.args["idev"][0])
     event['event']['recording_margin_before'] = margin_before
     event['event']['recording_margin_after'] = margin_after
     event['at'] = False
     event['transcoding'] = getTranscodingSupport()
     event['kinopoisk'] = getLanguage()
     return event
Ejemplo n.º 6
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
			at = True
		except ImportError:
			pass
		event['at'] = at
		event['transcoding'] = getTranscodingSupport()
		return event
Ejemplo n.º 7
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
			at = True
		except ImportError:
			pass
		event['at'] = at
		event['transcoding'] = getTranscodingSupport()
		return event
Ejemplo n.º 8
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'] = TRANSCODING
		event['kinopoisk'] = KINOPOISK
		return event
Ejemplo n.º 9
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

            at = True
        except ImportError:
            pass
        event["at"] = at
        event["transcoding"] = getTranscodingSupport()
        event["kinopoisk"] = getLanguage()
        return event
Ejemplo n.º 10
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'] = TRANSCODING
     event['kinopoisk'] = KINOPOISK
     return event
Ejemplo n.º 11
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'] = TRANSCODING
		if config.OpenWebif.webcache.moviedb.value:
			event['moviedb'] = config.OpenWebif.webcache.moviedb.value
		else:
			event['moviedb'] = 'IMDb'
		return event
Ejemplo n.º 12
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'] = TRANSCODING
		if config.OpenWebif.webcache.moviedb.value:
			event['moviedb'] = config.OpenWebif.webcache.moviedb.value
		else:
			event['moviedb'] = 'IMDb'
		return event
Ejemplo n.º 13
0
	def P_epgsearch(self, request):
		if "search" in request.args.keys():
			endtime = None
			if "endtime" in request.args.keys():
				try:
					endtime = int(request.args["endtime"][0])
				except ValueError:
					pass
			fulldesc=False
			if "full" in request.args.keys():
				fulldesc=True
			return getSearchEpg(request.args["search"][0], endtime,fulldesc, False, self.isJson)
		else:
			res = self.testMandatoryArguments(request, ["sref", "eventid"])
			if res:
				return res
			service_reference = request.args["sref"][0]
			item_id = 0
			try:
				item_id = int(request.args["eventid"][0])
			except ValueError:
				pass
			return getEvent(service_reference,item_id, self.isJson)
Ejemplo n.º 14
0
	def P_epgsearch(self, request):
		self.isGZ=True
		if "search" in request.args.keys():
			endtime = None
			if "endtime" in request.args.keys():
				try:
					endtime = int(request.args["endtime"][0])
				except ValueError:
					pass
			fulldesc=False
			if "full" in request.args.keys():
				fulldesc=True
			return getSearchEpg(request.args["search"][0], endtime,fulldesc)
		else:
			res = self.testMandatoryArguments(request, ["sref", "eventid"])
			if res:
				return res
			service_reference = request.args["sref"][0]
			item_id = 0
			try:
				item_id = int(request.args["eventid"][0])
			except ValueError:
				pass
			return getEvent(service_reference,item_id)
	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
		return event
Ejemplo n.º 16
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.getValue()
     event["event"]["recording_margin_after"] = config.recording.margin_after.getValue()
     return event
Ejemplo n.º 17
0
	def P_event(self, request):
		return getEvent(request.args["sref"][0], request.args["idev"][0])