mopidy / mopidy-spotify

Mopidy extension for playing music from Spotify
https://mopidy.com/ext/spotify/
Apache License 2.0
924 stars 106 forks source link

Extension isn't working? #254

Closed skyethepinkcat closed 4 years ago

skyethepinkcat commented 4 years ago

No matter what I do, I can't seem to get the extension to even start. I'm running arch, and I have mopidy and mopidy-spotify packages up to date and installed via the AUR. This is my config file:

[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]
verbosity = 0
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
color = true
config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 

[proxy]
scheme = 
hostname = 
port = 
username = 
password = 

[file]
enabled = true
media_dirs = 
  $XDG_MUSIC_DIR|Music
  ~/|Home
excluded_file_extensions = 
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins = 
csrf_protection = true
default_app = mopidy

[m3u]
enabled = true
base_dir = $XDG_MUSIC_DIR
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[stream]
enabled = true
protocols = 
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist = 
timeout = 5000

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = 
  listall
  listallinfo
default_playlist_scheme = m3u
[spotify]
client_id = <my id>
client_secret = <my secret>
username = <my username>
password = <my password>

When I run mopidy, it shows this:

INFO     2020-01-19 11:05:18,057 [127741:MainThread] mopidy.__main__
  Starting Mopidy 3.0.1
INFO     2020-01-19 11:05:18,070 [127741:MainThread] mopidy.config
  Loading config from builtin defaults
INFO     2020-01-19 11:05:18,071 [127741:MainThread] mopidy.config
  Loading config from file:///home/skye/.config/mopidy/mopidy.conf
INFO     2020-01-19 11:05:18,071 [127741:MainThread] mopidy.config
  Loading config from command line options
INFO     2020-01-19 11:05:18,135 [127741:MainThread] mopidy.__main__
  Enabled extensions: mpd, m3u, softwaremixer, file, http, stream
INFO     2020-01-19 11:05:18,136 [127741:MainThread] mopidy.__main__
  Disabled extensions: none
INFO     2020-01-19 11:05:18,237 [127741:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
INFO     2020-01-19 11:05:18,238 [127741:MainThread] mopidy.commands
  Starting Mopidy audio
INFO     2020-01-19 11:05:18,240 [127741:MainThread] mopidy.commands
  Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend
INFO     2020-01-19 11:05:18,249 [127741:Audio-2] mopidy.audio.actor
  Audio output set to "autoaudiosink"
INFO     2020-01-19 11:05:18,255 [127741:MainThread] mopidy.commands
  Starting Mopidy core
INFO     2020-01-19 11:05:18,262 [127741:MainThread] mopidy.commands
  Starting Mopidy frontends: HttpFrontend, MpdFrontend
INFO     2020-01-19 11:05:18,264 [127741:HttpFrontend-8] mopidy.http.actor
  HTTP server running at [::ffff:127.0.0.1]:6680
INFO     2020-01-19 11:05:18,265 [127741:MainThread] mopidy_mpd.actor
  MPD server running at [::ffff:127.0.0.1]:6600
INFO     2020-01-19 11:05:18,266 [127741:MainThread] mopidy.commands
  Starting GLib mainloop

There's no errors, but spotify isn't even listed under enabled extensions.

kingosticks commented 4 years ago

Please use mopidy deps to show what extensions have been found on your system (http://docs.mopidy.com/en/latest/troubleshooting/#show-installed-dependencies).

skyethepinkcat commented 4 years ago

Thanks for the tip, with that I solved the issue. The AUR package actually needs to be updated. I didn't think to check that because it was written on the website as a way to install. Installing it via pip worked.

kingosticks commented 4 years ago

Can you inform the AUR maintainer of this? I've no idea how that ecosystem works.

skyethepinkcat commented 4 years ago

The AUR package has a bunch of comments mentioning it already. Hopefully the maintainer will update it soon.