mirror of
https://github.com/NohamR/AM-Exporter.git
synced 2026-05-24 19:58:34 +00:00
readme + install.sh
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
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 :
|
||||
@@ -41,12 +41,15 @@ git clone https://github.com/NohamR/AM-Exporter.git
|
||||
cd user
|
||||
python install -r requirements.txt
|
||||
```
|
||||
Créer le fichier .env avec l'utilisateur et son mot de passe ([.env.example](user/.env.example)).
|
||||
|
||||
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
|
||||
@@ -66,5 +69,4 @@ cd user
|
||||
```
|
||||
|
||||
# To do :
|
||||
- make script proper
|
||||
- comment
|
||||
3
user/.env.example
Normal file
3
user/.env.example
Normal file
@@ -0,0 +1,3 @@
|
||||
USER = "user"
|
||||
PASSWORD = "password"
|
||||
URL_API = "https://api.example.com"
|
||||
@@ -6,4 +6,10 @@ cp -f music-exp.plist ~/Library/LaunchAgents/
|
||||
|
||||
echo --- Load launch agent
|
||||
launchctl load ~/Library/LaunchAgents/music-exp.plist
|
||||
echo --- INSTALL SUCCESS
|
||||
|
||||
if launchctl list | grep am.noh.music-exp; then
|
||||
echo "--- Agent successfully loaded"
|
||||
echo "--- INSTALL SUCCESS"
|
||||
else
|
||||
echo "--- ERROR: Agent failed to load"
|
||||
fi
|
||||
Reference in New Issue
Block a user