54 lines
1.3 KiB
Markdown
54 lines
1.3 KiB
Markdown
!!! For some parts of this project i used Gen AI, more information below !!!
|
|
|
|
# Setup
|
|
```
|
|
git clone https://git.leohabrom.com/Jinx/ytm-jam.git
|
|
cd ytm-jam
|
|
python -m venv .venv
|
|
```
|
|
## Windows
|
|
```
|
|
.venv\Scripts\activate
|
|
pip install -r requirements.txt
|
|
ytmusicapi browser
|
|
```
|
|
## Linux
|
|
```
|
|
source .venv/bin/activate
|
|
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
|
|
|
|
|
|
|
|
# Usage
|
|
```
|
|
flask run -h 0.0.0.0
|
|
```
|
|
|
|
```
|
|
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
|
|
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 |