From dcb21d39a9b2d55c5503dfae902b13783870882f Mon Sep 17 00:00:00 2001 From: dylan-fournier <124598538+dylan-fournier@users.noreply.github.com> Date: Tue, 28 May 2024 12:26:17 -0400 Subject: [PATCH] chaged default port to be correct also bug fixes and readme changes --- .gitignore | 3 ++- Server/webbyBits.py | 4 ++-- readme.md | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fcb12f0..245e57a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ server/sound/ -server/songDatabase.json \ No newline at end of file +server/songDatabase.json +start.bat \ No newline at end of file diff --git a/Server/webbyBits.py b/Server/webbyBits.py index c14db2b..6401a69 100644 --- a/Server/webbyBits.py +++ b/Server/webbyBits.py @@ -17,7 +17,7 @@ player = fakeplayer.media_player_new() player.audio_set_volume(100) app = Flask(__name__) CORS(app) -with open('songDatabase.json', 'r') as handle: +with open('./songDatabase.json', 'r') as handle: songDatabaseList = json.load(handle) def queueSong(song): @@ -124,5 +124,5 @@ def getPlaylist(): return tempPlaylist if __name__ == "__main__": - app.run(host='0.0.0.0', port='25565') + app.run(host='0.0.0.0', port='19054') \ No newline at end of file diff --git a/readme.md b/readme.md index 083a9ef..145ff56 100644 --- a/readme.md +++ b/readme.md @@ -54,6 +54,7 @@ These are specific details on each section of the app, and how to use them - `webbyBits.py` imports the database, runs all music playing, and accepts all commands from clients - Searches return matching songs - Accepts Play-Pause and Skip commands + - Uses port 19054 by default ### Client: ![image](./Screenshot_RAW.png) \