Aller au contenu

Damien Poitou

Membres
  • Inscription

  • Dernière visite

Tout ce qui a été posté par Damien Poitou

  1. Merci pour ce tuto qui correspondait exactement à ce que je cherchais depuis longtemps. J'ai passé du temps à essayé de faire marcher Spotify et j'y suis enfin arrivé. Il fallait patcher le plugin Spotify Gstreamer gst-inspect-1.0 spotifyaudiosrc | grep Version | awk '{print $2}' -> 0.15.0-alpha.1-bcd0ca54J'ai préparé un script de patch pour les containers instance1 et instance2 à lancer dans chaque container sudo docker exec -it --user root iris-instance1 bash cd vim patch.sh chmod a+x patch.sh && ./patch.sh exit sudo docker restart iris-instance1et le contenu du patch.sh #!/bin/bash set -e # --- VARIABLES --- GST_PLUGIN_RS_DIR="/var/lib/mopidy/gst-plugins-rs" CARGO_HOME="/var/lib/mopidy/.cargo" TMPDIR="/var/lib/mopidy/tmp" mkdir -p "$TMPDIR" export TMPDIR export CARGO_HOME export PATH="$CARGO_HOME/bin:$PATH" # --- 1. Mise à jour des librairies --- apt update apt install -y build-essential pkg-config \ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \ libglib2.0-dev libgirepository1.0-dev gir1.2-gstreamer-1.0 \ libasound2-dev libpulse-dev libssl-dev # --- 2. Installer / mettre à jour Rust --- echo "=== INSTALLATION/MISE A JOUR DE RUST ===" if command -v rustc &> /dev/null; then echo "Rust déa installé : $(rustc --version)" else curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y fi source "$CARGO_HOME/env" rustc --version cargo --version # --- 3. Compiler plugin Spotify --- # Répertoire où se trouve gst-plugins-rs GST_DIR="/var/lib/mopidy/gst-plugins-rs" echo "=== COMPILATION DU PLUGIN SPOTIFY ===" export PATH="$HOME/.cargo/bin:$PATH" git clone https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git cd "$GST_DIR" cargo build --release -p gst-plugin-spotify echo "=== PLUGIN COMPILE ===" PLUGIN_SO="$GST_DIR/target/release/libgstspotify.so" cp "$PLUGIN_SO" /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ echo "Plugin installé : $PLUGIN_SO" # --- 5. Mise à jour de Mopidy et Iris --- echo "=== MISE A JOUR DE MOPIDY ET IRIS ===" python3 -m pip install --upgrade --no-cache-dir mopidy mopidy-iris==3.70.0 # --- 6. Vérification des versions --- echo "=== VÉRIFICATION ===" echo "- Mopidy version : $(mopidy --version)" echo "- Iris version : $(python3 -m pip show Mopidy-Iris | grep Version)" echo "- Plugin Spotify GStreamer : $(gst-inspect-1.0 spotifyaudiosrc | grep Version | awk '{print $2}')" echo "=== SCRIPT TERMINE ==="Utiliser cette page pour récupérer les identifiants pour se connecter à Spotify à rensigner dans mopidy.conf https://mopidy.com/ext/spotify/ [spotify] enabled = true client_id = The config value will appear here. client_secret = The config value will appear here.

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.