Skip to content

Commit

Permalink
feat: update spotify packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 2, 2024
1 parent 84b901c commit c73b6b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 0 additions & 6 deletions packages-spotify.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Define packages for apt-get. These can be installed with
# 'sed 's/#.*//g' packages.txt | xargs sudo apt-get install'

libspotify-dev
libspotify12
python3-cffi
python3-ply
python3-pycparser
python3-spotify
mopidy
mopidy-mpd
mopidy-local
mopidy-spotify
7 changes: 5 additions & 2 deletions requirements-spotify.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Spotify related requirements
# You need to install these with `sudo pip install --upgrade --force-reinstall -r requirements-spotify.txt`
Mopidy-Iris==3.69.3
# You need to install these with `sudo pip install --upgrade --force-reinstall -r requirements-spotify.txt`
Mopidy-Local
Mopidy-MPD
Mopidy-Iris==3.69.3
Mopidy-Spotify==5.0.0a1
5 changes: 5 additions & 0 deletions scripts/installscripts/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,11 @@ install_main() {
${apt_get} upgrade
call_with_args_from_file "${jukebox_dir}"/packages-spotify.txt ${apt_get} ${allow_downgrades} install

# not yet available on apt.mopidy.com, so install manually
wget -q https://github.com/kingosticks/gst-plugins-rs-build/releases/download/gst-plugin-spotify_0.12.2-1/gst-plugin-spotify_0.12.2-1_armhf.deb
${apt_get} install ./gst-plugin-spotify_0.12.2-1_armhf.deb
sudo rm -f gst-plugin-spotify_0.12.2-1_armhf.deb

# Install necessary Python packages
${pip_install} -r "${jukebox_dir}"/requirements-spotify.txt
fi
Expand Down
2 changes: 2 additions & 0 deletions scripts/installscripts/tests/test_installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ verify_apt_packages() {
# also check for spotify packages if it has been installed
if [[ "${SPOTinstall}" == "YES" ]]; then
packages="${packages} ${packages_spotify}"
# not yet available on apt.mopidy.com, so install manually
packages="${packages} gst-plugin-spotify"
fi

if [[ "$AUTOHOTSPOTconfig" == "YES" ]]; then
Expand Down

0 comments on commit c73b6b8

Please sign in to comment.