Passer au contenu principal

Automatisation Tidal-DL

Création de l'image Docker pour Tidal-DL

  • Docker

Fichier Dockerfile : (source ici : https://git.wlan.ovh/garfieldtux/docker-demo)

# This file is a template, and might need editing before it works on your project.
FROM python:3.8-slim

WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt

COPY .tidal-dl.json /root/.tidal-dl.json
COPY .tidal-dl.token.json /root/.tidal-dl.token.json

Création de l'image et Lancement du docker 

docker build -t tidal-dl .
docker run -itd --name=TidalDL -v /mnt/NAS/music:/mnt/music tidal-dl

 

  • Rundeck

Mise en place de RunDeck pour l'automatisation :

rundeck1.PNG

Utiliser les options suivante pour l'utilisation du WEBhook 

docker exec -it TidalDL tidal-dl -l ${option.ID} ${option.URL}

 

  • WebHook

Ensuite il faut crée un webhook avec les options suivantes 

-URL ${data.field1}

rundeck2.PNG

  • Requête CURL pour le Webhook 

 

curl -H "Content-Type: application/json" -X POST -d '{"field1" : "117790336"}' https://run.wlan.ovh/api/38/webhook/nWfevIsA7ieJz9f1FKsW0Ib7uNwXWUfR

 

  • Raccourci Apple :

Dans Ios Raccourci il faut crée ceci :

iphone.jpg