plex und threadfin
This commit is contained in:
1 parent
66e53b4be4
commit
fcb87cf881
7 files changed
+223
-42
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import http.server
|
||||
import socketserver
|
||||
|
||||
PORT = 8889
|
||||
FILE_NAME = "sky_epg.xml" # Trage hier den Namen deiner Datei ein
|
||||
|
||||
class SingleFileHandler(http.server.SimpleHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
# Leitet jede Anfrage zwingend auf diese eine Datei um
|
||||
self.path = '/' + FILE_NAME
|
||||
return super().do_GET()
|
||||
|
||||
with socketserver.TCPServer(("", PORT), SingleFileHandler) as httpd:
|
||||
print(f"Server läuft: http://localhost:{PORT}")
|
||||
print(f"Stellt ausschließlich '{FILE_NAME}' bereit. Zum Beenden STRG+C drücken.")
|
||||
httpd.serve_forever()
|
||||
Reference in new issue
Block a user