mirror of
https://github.com/NohamR/AM-Exporter.git
synced 2026-05-25 12:17:14 +00:00
readme upadate
This commit is contained in:
202
Diagramme.drawio
202
Diagramme.drawio
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
67
README.md
67
README.md
@@ -1,11 +1,70 @@
|
|||||||
|
# AppleMusicExporter
|
||||||
|
|
||||||
|
AppleMusicExporter est un projet conçu pour exporter les musiques depuis Apple Music en temps réel. AppleMusicExporter utilise [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) pour les interactions avec Apple Music.
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||

|
## Dépendances :
|
||||||
|
|
||||||
|
### Back :
|
||||||
|
- flask
|
||||||
|
- python-dotenv (optionnel)
|
||||||
|
- requests
|
||||||
|
|
||||||
|
### User :
|
||||||
|
- colorthief
|
||||||
|
- python-dotenv
|
||||||
|
- requests
|
||||||
|
|
||||||
|
## Install :
|
||||||
|
### Back :
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/NohamR/AM-Exporter.git
|
||||||
|
cd back
|
||||||
|
```
|
||||||
|
Créer le fichier .users avec les utilisateurs et leurs mots de passe hashés ([.user.example](back/.users.example)).
|
||||||
|
```bash
|
||||||
|
docker build -t amexporter .
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
docker run -d -p 3005:3005 amexporter
|
||||||
|
```
|
||||||
|
Ou
|
||||||
|
```bash
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
### User :
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/NohamR/AM-Exporter.git
|
||||||
|
cd user
|
||||||
|
python install -r requirements.txt
|
||||||
|
```
|
||||||
|
Configuer [music-exp.plist](user/music-exp.plist) sur l'exemple de [music-exp.plist.example](user/music-exp.plist.example) :
|
||||||
|
PYTHON_PATH
|
||||||
|
WORKING_DIRECTORY
|
||||||
|
```bash
|
||||||
|
./install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Logs can but found in the working direcrtory :
|
||||||
|
```bash
|
||||||
|
cd WORKING_DIRECTORY
|
||||||
|
tail -f error_logfile.log
|
||||||
|
tail -f logfile.log
|
||||||
|
```
|
||||||
|
|
||||||
|
### Front :
|
||||||
|
Un exemple d'implémentation de l'api est disponible dans [front-example](front-example).
|
||||||
|

|
||||||
|
|
||||||
|
## Uninstall :
|
||||||
|
```bash
|
||||||
|
cd user
|
||||||
|
./unistall.sh
|
||||||
|
```
|
||||||
|
|
||||||
# To do :
|
# To do :
|
||||||
- readme
|
|
||||||
- make script proper
|
- make script proper
|
||||||
- comment
|
- comment
|
||||||
|
|
||||||
tail -f logfile.log
|
|
||||||
3
back/.users.example
Normal file
3
back/.users.example
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"user": "hashed_password"
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: applemusicexporter
|
name: amexporter
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
cpu_shares: 90
|
cpu_shares: 90
|
||||||
@@ -11,7 +11,7 @@ services:
|
|||||||
- PGID=1000
|
- PGID=1000
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- TZ=Europe/Paris
|
- TZ=Europe/Paris
|
||||||
image: applemusicexporter
|
image: amexporter
|
||||||
labels:
|
labels:
|
||||||
icon: https://noh.am/static/assets/music.png
|
icon: https://noh.am/static/assets/music.png
|
||||||
ports:
|
ports:
|
||||||
@@ -21,7 +21,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# volumes:
|
# volumes:
|
||||||
# - type: bind
|
# - type: bind
|
||||||
# source: /DATA/AppData/applemusicexporter
|
# source: /DATA/AppData/amexporter
|
||||||
# target: /hard
|
# target: /hard
|
||||||
x-casaos:
|
x-casaos:
|
||||||
envs:
|
envs:
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
container_name: ""
|
container_name: ""
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: applemusicexporter
|
name: amexporter
|
||||||
x-casaos:
|
x-casaos:
|
||||||
architectures:
|
architectures:
|
||||||
- amd64
|
- amd64
|
||||||
@@ -55,9 +55,9 @@ x-casaos:
|
|||||||
main: app
|
main: app
|
||||||
port_map: "3005"
|
port_map: "3005"
|
||||||
scheme: http
|
scheme: http
|
||||||
store_app_id: applemusicexporter
|
store_app_id: amexporter
|
||||||
tagline:
|
tagline:
|
||||||
en_us: applemusicexporter
|
en_us: amexporter
|
||||||
title:
|
title:
|
||||||
custom: applemusicexporter
|
custom: amexporter
|
||||||
en_us: applemusicexporter
|
en_us: amexporter
|
||||||
|
|||||||
BIN
front-example/screen.png
Normal file
BIN
front-example/screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
23
user/music-exp.plist.example
Normal file
23
user/music-exp.plist.example
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>KeepAlive</key>
|
||||||
|
<true/>
|
||||||
|
<key>Label</key>
|
||||||
|
<string>am.noh.music-exp</string>
|
||||||
|
<key>ProgramArguments</key>
|
||||||
|
<array>
|
||||||
|
<string>PYTHON_PATH</string>
|
||||||
|
<string>export.py</string>
|
||||||
|
</array>
|
||||||
|
<key>RunAtLoad</key>
|
||||||
|
<true/>
|
||||||
|
<key>StandardOutPath</key>
|
||||||
|
<string>logfile.log</string>
|
||||||
|
<key>StandardErrorPath</key>
|
||||||
|
<string>error_logfile.log</string>
|
||||||
|
<key>WorkingDirectory</key>
|
||||||
|
<string>WORKING_DIRECTORY</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
3
user/requirements.txt
Normal file
3
user/requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
colorthief==0.2.1
|
||||||
|
python-dotenv==1.0.1
|
||||||
|
Requests==2.31.0
|
||||||
Reference in New Issue
Block a user