From c3852f6e7b0d456d2cafbea8c0a229d1a5228d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C8=9Au=C8=9Buianu?= Date: Sat, 17 Aug 2024 15:34:36 +0300 Subject: [PATCH] Update plugin.py Expose "/picon" directory to serve picon files --- epgexport/src/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epgexport/src/plugin.py b/epgexport/src/plugin.py index 2d44f2c3e..59fa2ef52 100644 --- a/epgexport/src/plugin.py +++ b/epgexport/src/plugin.py @@ -30,7 +30,7 @@ from time import gmtime, strftime from twisted.internet.threads import deferToThread from twisted.internet.reactor import listenTCP, run -from twisted.web import http +from twisted.web import http, static from twisted.web.resource import Resource from twisted.web.server import Site from xml.etree.ElementTree import tostring, parse @@ -336,6 +336,7 @@ def startingCustomEPGExternal(): root.putChild(b"epgexport.xml", resourcePrograms) root.putChild(b"epgexport.gz", resourcePrograms) root.putChild(b"epgexport.xz", resourcePrograms) + root.putChild(b"picon", static.File("/picon")) factory = Site(root) port = int(config.plugins.epgexport.port.value) listenTCP(port, factory)