tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 1310d789c6084f5fbb04368b2e2e6468d3a55b9b
parent 41e4c080188a79dcde419412b376c54ae4c8ce04
Author: rbckman <rob@tarina.org>
Date:   Tue, 10 Jan 2023 16:33:12 +0000

nudå

Diffstat:
Mtarina.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -228,6 +228,7 @@ def main(): pressed="record" onlysound=True elif nextstatus=="PLACEHOLDER": + selected=2 pressed="insert" elif "SYNCIP:" in nextstatus: ip = nextstatus.split(':')[1] @@ -1167,15 +1168,15 @@ def loadsettings(filmfolder, filmname): def sendtoserver(host, port, data): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - while True: - try: + try: + while True: print('sending data to '+host+':'+str(port)) s.connect((host, port)) s.send(str.encode(data)) + s.close() break - except: - continue - s.close() + except: + print('sometin rong') ##--------------Listen for Clients-----------------------