MPC mopify Spotify Распбиан
У меня есть модди с расширением Spotify Insatlliert. Но если я хочу сыграть песню, она не работает. Может кто-нибудь мне помочь.
Мой конфиг mopidy выглядит так:
# For further information about options in this file see:
# http://docs.mopidy.com/
#
# The initial commented out values reflect the defaults as of:
# Mopidy 2.1.0
# Mopidy-File 2.1.0
# Mopidy-HTTP 2.1.0
# Mopidy-Local 2.1.0
# Mopidy-M3U 2.1.0
# Mopidy-MPD 2.1.0
# Mopidy-SoftwareMixer 2.1.0
# Mopidy-Stream 2.1.0
#
# Available options and defaults might have changed since then,
# run `mopidy config` to see the current effective config and
# `mopidy --version` to check the current version.
[core]
#cache_dir = $XDG_CACHE_DIR/mopidy
#config_dir = $XDG_CONFIG_DIR/mopidy
#data_dir = $XDG_DATA_DIR/mopidy
#max_tracklist_length = 10000
#restore_state = false
[logging]
#color = true
#console_format = %(levelname)-8s %(message)s
#debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
#debug_file = mopidy.log
#config_file =
[audio]
#mixer = software
#mixer_volume =
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo
#buffer_time =
[proxy]
#scheme =
#hostname =
#port =
#username =
#password =
[mpd]
enabled = true
hostname = 127.0.0.1
port = 6601
#password =
#max_connections = 20
#connection_timeout = 60
#zeroconf = Mopidy MPD server on $hostname
#command_blacklist =
# listall
# listallinfo
#default_playlist_scheme = m3u
[http]
#enabled = true
hostname = 127.0.0.1
#port = 6681
static_dir = /opt/webclient
#zeroconf = Mopidy HTTP server on $hostname
[stream]
enabled = true
#protocols =
# http
# https
# mms
# rtmp
# rtmps
# rtsp
#metadata_blacklist =
#timeout = 5000
[m3u]
#enabled = true
#base_dir =
#default_encoding = latin-1
#default_extension = .m3u8
#playlists_dir =
[softwaremixer]
#enabled = true
#[file]
#enabled = true
#media_dirs = /home/pi/spotify_music
# $XDG_MUSIC_DIR|Music
# ~/|Home
#excluded_file_extensions =
# .jpg
# .jpeg
#show_dotfiles = false
#follow_symlinks = false
#metadata_timeout = 1000
[local]
enabled = false
#library = json
#media_dir = /home/music_spotify
#scan_timeout = 1000
#scan_flush_threshold = 100
#scan_follow_symlinks = false
#excluded_file_extensions =
# .directory
# .html
# .jpeg
# .jpg
# .log
# .nfo
# .png
# .txt
[spotify]
enabled = true
username = my_username
password = my_password
client_id = my client_id
client_secret = my client_secret
Команды выглядят так:
pi@raspberrypi:~ $ mpc clear
volume: n/a repeat: off random: off single: off consume: off
pi@raspberrypi:~ $ mpc add https://open.spotify.com/track/0tKcYR2II1VCQWT79i5NrW
pi@raspberrypi:~ $ mpc play
https://open.spotify.com/track/0tKcYR2II1VCQWT79i5NrW
[playing] #1/1 0:00/0:00 (0%)
volume: n/a repeat: off random: off single: off consume: off
Если я играю другой поток через MPC, это работает. Только с Spotify Link это не работает.
Может кто-нибудь помочь мне с этой проблемой?
1 ответ
Вам нужно использовать URI-ссылку Spotify так:
mpc add spotify:track:0tKcYR2II1VCQWT79i5NrW