1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-08 10:50:24 +02:00

Le Fetch ouvre ensuite la page pour entrer un nouveau média (code sans doute temporaire)

This commit is contained in:
Yohann D'ANELLO
2020-02-20 13:42:22 +01:00
parent 39c3a59838
commit 0c9b3c4d5f
3 changed files with 9 additions and 4 deletions

View File

@ -22,6 +22,9 @@ class Server(BaseHTTPRequestHandler):
def do_GET(self):
self._set_headers()
isbn = self.path[7:-24]
if not isbn.isnumeric():
print("Mauvais ISBN.")
return
print("Hey j'ai un ISBN :", isbn)
os.system("xdotool type " + isbn)
os.system("xdotool key KP_Enter")