diff --git a/password.py b/password.py new file mode 100644 index 0000000..72be86b --- /dev/null +++ b/password.py @@ -0,0 +1,3 @@ +text_file = open("password.txt", "w") +text_file.write(input("Set a password: ")) +text_file.close() \ No newline at end of file diff --git a/playify-transfer.py b/playify-transfer.py index 1b4648a..05eb156 100644 --- a/playify-transfer.py +++ b/playify-transfer.py @@ -54,6 +54,12 @@ def receiveWS(c, s, msg): "error": True, "track": track })) + else: + server.send_message_to_all(json.dumps({ + "q": "auth", + "error": True, + "google": True + })) elif data["q"] == "get_playlists": api = Mobileclient(False) @@ -70,6 +76,12 @@ def receiveWS(c, s, msg): "q": "playlists", "lists": array })) + else: + server.send_message_to_all(json.dumps({ + "q": "auth", + "error": True, + "google": True + })) else: server.send_message_to_all(json.dumps({ diff --git a/setup.py b/setup.py index 19f74b1..4c4aae9 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ os.environ['TCL_LIBRARY']="C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python36-32\\tcl\\tcl8.6" os.environ['TK_LIBRARY']="C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python36-32\\tcl\\tk8.6" -executables = [Executable("playify-transfer.py", base="Win32GUI", targetName="playify-transfer-invisible.exe"), Executable("playify-transfer.py", base=None)] +executables = [Executable("playify-transfer.py", base="Win32GUI", targetName="playify-transfer-invisible.exe"), Executable("playify-transfer.py", base=None), Executable("password.py", base=None)] options = { 'build_exe': {