diff --git a/README.md b/README.md index b407bfc..3be4e5b 100644 --- a/README.md +++ b/README.md @@ -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. -![music player](Music-Player.gif) +![music player](front-example/screen.png) ![diagramme](Diagramme.drawio.png) ## 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 ``` +![notif.png](notif.png) Logs can but found in the working direcrtory : ```bash @@ -66,5 +69,4 @@ cd user ``` # To do : -- make script proper - comment \ No newline at end of file diff --git a/notif.png b/notif.png new file mode 100644 index 0000000..6f4e344 Binary files /dev/null and b/notif.png differ diff --git a/user/.env.example b/user/.env.example new file mode 100644 index 0000000..329df46 --- /dev/null +++ b/user/.env.example @@ -0,0 +1,3 @@ +USER = "user" +PASSWORD = "password" +URL_API = "https://api.example.com" \ No newline at end of file diff --git a/user/install.sh b/user/install.sh index 86196d1..98c6362 100755 --- a/user/install.sh +++ b/user/install.sh @@ -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 \ No newline at end of file