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:
@ -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")
|
||||
|
Reference in New Issue
Block a user