Compare commits

..

10 Commits

Author SHA1 Message Date
Leo
8b74f9cb97 Update Readme 2026-02-15 11:42:46 +01:00
Leo
992ff8b424 Update README.md 2026-02-15 11:41:14 +01:00
Leo
c13c5cd2cf Update readme 2026-02-15 11:37:32 +01:00
Leo
911bffb00b fix: changed bridge address to not be localhost anymore 2026-02-15 11:35:29 +01:00
Leo
4d91077527 Merge branch 'main' of https://github.com/zxrotwo002/ytm-jam 2026-02-15 01:30:09 +01:00
Leo
4dcb766006 css 2026-02-15 01:28:54 +01:00
zxrotwo002
45d93aa54c Fix README.md 2026-02-15 01:27:36 +01:00
zxrotwo002
e718a6d4d2 Update README
Added instructions to open the application in a browser.
2026-02-15 01:27:08 +01:00
zxrotwo002
cff9436c06 Refactor README for better readability
Updated README to improve clarity and formatting.
2026-02-15 01:24:27 +01:00
zxrotwo002
893364d319 Update Gen AI usage note in README 2026-02-15 01:23:46 +01:00
3 changed files with 31 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
# For some parts of this project i used Gen AI, more information below
!!! For some parts of this project i used Gen AI, more information below !!!
# Setup
```
@@ -19,26 +19,36 @@ pip install -r requirements.txt
ytmusicapi browser
```
Follow the instructions of the [ytmusicapi](https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html)
Add the script in [tampermonkey](tampermonkey) as new userscript in tampermonkey
Follow the instructions of the [ytmusicapi](https://ytmusicapi.readthedocs.io/en/stable/setup/browser.html)
Add the script in [tampermonkey](tampermonkey) as new userscript in tampermonkey
# Usage
```
flask run
flask run -h 0.0.0.0
```
```
node server/server.cjs
node server/server.cjs
```
Open [127.0.0.1:5000](http://127.0.0.1:5000) in your browser or `<your-ip>:5000`
# Credits
Python code and javascript is written by me
The bridge server was also written by me
CSS was generated by Gemini
Python code and javascript is written by me
The bridge server was also written by me
CSS was generated by Gemini
The tampermonkey script was also generated by Gemini since my first idea was to use the YTM-Desktop app as player until i realised that it doesn't support adding songs to the queue.
# Planned Features
- View current playing song
- Play/pause
- Next song
- Repeat on/off
- Manually rewrite the tampermonkey script with better functions
- Pack webapp and bridge server in one application / make the tampermonkey script talk to the webapp directly

View File

@@ -9,7 +9,7 @@ function add(e,title,artist,id,action) {
}, 500);
fetch("http://localhost:3000/command", {
fetch("http://" + window.location.hostname + ":3000/command", {
method: "POST",
body: JSON.stringify({
"videoId": id,

View File

@@ -141,6 +141,15 @@ a.video {
min-width: 250px;
}
a.playlist {
font-weight: 600;
color: #fff;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
min-width: 250px;
}
a.artist {
color: #aaa;
text-decoration: none;