Mopidy Discourse

Can not scrub backwards on Spotify tracks

I am unable to scrub backwards on Spotify tracks from Iris. I can scrub forwards without issue, and I can work around the issue but scrubbing back further than I intend to move the play head then scrubbing forward to the correct point. This issue only occurs on Spotify tracks, not local media. Has anyone else run into this issue?

Config:

Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config” as user mopidy
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
config_file =

[audio]
mixer = software
mixer_volume = 40
output = alsasink device=hw:1,0
buffer_time =

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

[ytmusic]
enabled = true
auth_json =
auto_playlist_refresh = 60
youtube_player_refresh = 15
playlist_item_limit = 100
subscribed_artist_limit = 100
enable_history = true
enable_liked_songs = true
enable_mood_genre = true
enable_scrobbling = true
stream_preference =
141
251
140
250
249
verify_track_url = true

[raspberry-gpio]
enabled = true
bcm0 =
bcm1 =
bcm2 =
bcm3 =
bcm4 =
bcm5 = play_pause,active_low,150,
bcm6 = volume_down,active_low,150,
bcm7 =
bcm8 =
bcm9 =
bcm10 =
bcm11 =
bcm12 =
bcm13 =
bcm14 =
bcm15 =
bcm16 = next,active_low,150,
bcm17 =
bcm18 =
bcm19 =
bcm20 = volume_up,active_low,250,
bcm21 =
bcm22 =
bcm23 =
bcm24 = volume_up,active_low,150,
bcm25 =
bcm26 =
bcm27 =

[pidi]
enabled = true
display = st7789
rotation = 90

[iris]
enabled = true
country = US
locale = en_US
spotify_authorization_url = default (removed to allow posting)
lastfm_authorization_url = default (removed to allow posting)
genius_authorization_url = default (removed to allow posting)
data_dir = $XDG_DATA_DIR/iris

[file]
enabled = true
media_dirs =
/home/pi/Ryan|Ryan
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 = 0.0.0.0
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins =
csrf_protection = true
default_app = iris

[m3u]
enabled = true
base_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

[spotify]
enabled = true
username = @
password = ********
client_id = e1bfef4e-a76b-4c6f-b25d-d82e24578fb4
client_secret = ********
bitrate = 320
volume_normalization = false
private_session = true
timeout = 10
allow_cache = true
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries =

[alsamixer]
enabled = true
card = 0
control = Master
min_volume = 0
max_volume = 100
volume_scale = cubic

Dependencies:

Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps” as user mopidy
Executable: /usr/bin/mopidy
Platform: Linux-5.10.17-v7l±armv7l-with-debian-10.9
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-Spotify: 4.1.0 from /usr/lib/python3/dist-packages
mopidy-ytmusic: 0.3.0 from /usr/local/lib/python3.7/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
ytmusicapi: 0.17.3 from /usr/local/lib/python3.7/dist-packages
requests: 2.25.1 from /usr/local/lib/python3.7/dist-packages
urllib3: 1.24.1 from /usr/lib/python3/dist-packages
certifi: 2018.8.24 from /usr/lib/python3/dist-packages
chardet: 3.0.4 from /usr/lib/python3/dist-packages
idna: 2.6 from /usr/lib/python3/dist-packages
pytube: 10.8.5 from /usr/local/lib/python3.7/dist-packages
mopidy-raspberry-gpio: 1.0.2 from /usr/local/lib/python3.7/dist-packages
Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
mopidy-pidi: 1.0.3 from /usr/local/lib/python3.7/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
musicbrainzngs: 0.7.1 from /usr/local/lib/python3.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Pykka: 2.0.3 from /usr/lib/python3/dist-packages
netifaces: 0.11.0 from /usr/local/lib/python3.7/dist-packages
Mopidy-ALSAMixer: 2.0.1 from /usr/lib/python3/dist-packages
Mopidy-Iris: 3.58.0 from /usr/local/lib/python3.7/dist-packages
Pykka: 2.0.3 from /usr/lib/python3/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.30.4
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
pulsesink
id3demux
id3v2mux
lamemp3enc
mpegaudioparse
mpg123audiodec
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
flump3dec
mad

Hardware:
Raspberry Pi 4 w/2GB of ram + Pirate audio line out.

Log:

– Logs begin at Thu 2021-06-24 07:26:27 CDT, end at Thu 2021-06-24 10:43:17 CDT. –
Jun 24 07:26:41 MopidyPi systemd[1]: Starting Mopidy music server…
Jun 24 07:26:41 MopidyPi systemd[1]: Started Mopidy music server.
Jun 24 07:26:43 MopidyPi mopidy[572]: INFO [MainThread] mopidy.main Starting Mopidy 3.1.1
Jun 24 07:26:43 MopidyPi mopidy[572]: INFO [MainThread] mopidy.config Loading config from builtin defaults
Jun 24 07:26:43 MopidyPi mopidy[572]: INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
Jun 24 07:26:43 MopidyPi mopidy[572]: INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
Jun 24 07:26:43 MopidyPi mopidy[572]: INFO [MainThread] mopidy.config Loading config from command line options
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [MainThread] mopidy.main Enabled extensions: raspberry-gpio, ytmusic, softwaremixer, pidi, alsamixer, m3u, file, http, iris, stream, spotify
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [MainThread] mopidy.main Disabled extensions: none
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Mixer volume set to 40
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Starting Mopidy audio
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Starting Mopidy backends: YTMusicBackend, FileBackend, M3UBackend, StreamBackend, SpotifyBackend
Jun 24 07:26:44 MopidyPi mopidy[572]: INFO [Audio-2] mopidy.audio.actor Audio output set to “alsasink device=hw:1,0”
Jun 24 07:26:47 MopidyPi mopidy[572]: INFO [SpotifyBackend-9] mopidy_spotify.web Logged into Spotify Web API as 94w2qoj9oj6kykbt1xii2sqek
Jun 24 07:26:47 MopidyPi mopidy[572]: INFO [SpotifyEventLoop] mopidy_spotify.backend Logged in to Spotify in online mode
Jun 24 07:26:47 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic loaded 8 auto playlists sections
Jun 24 07:26:47 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 1.88s
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [SpotifyBackend-9] mopidy_spotify.playlists Refreshed 37 Spotify playlists
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [SpotifyBackend-9] mopidy_spotify.backend Spotify private session activated
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Starting Mopidy core
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: YTMusicScrobbleFE, RaspberryGPIOFrontend, PiDiFrontend, IrisFrontend, HttpFrontend
Jun 24 07:26:55 MopidyPi mopidy[572]: ERROR [MainThread] mopidy.commands Got un-handled exception from RaspberryGPIOFrontend
Jun 24 07:26:55 MopidyPi mopidy[572]: Traceback (most recent call last):
Jun 24 07:26:55 MopidyPi mopidy[572]: File “/usr/lib/python3/dist-packages/mopidy/commands.py”, line 241, in _actor_error_handling
Jun 24 07:26:55 MopidyPi mopidy[572]: yield
Jun 24 07:26:55 MopidyPi mopidy[572]: File “/usr/lib/python3/dist-packages/mopidy/commands.py”, line 438, in start_frontends
Jun 24 07:26:55 MopidyPi mopidy[572]: frontend_class.start(config=config, core=core)
Jun 24 07:26:55 MopidyPi mopidy[572]: File “/usr/lib/python3/dist-packages/pykka/_actor.py”, line 91, in start
Jun 24 07:26:55 MopidyPi mopidy[572]: obj = cls(*args, **kwargs)
Jun 24 07:26:55 MopidyPi mopidy[572]: File “/usr/local/lib/python3.7/dist-packages/mopidy_raspberry_gpio/frontend.py”, line 42, in init
Jun 24 07:26:55 MopidyPi mopidy[572]: bouncetime=settings.bouncetime,
Jun 24 07:26:55 MopidyPi mopidy[572]: RuntimeError: Failed to add edge detection
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [IrisFrontend-15] mopidy_iris.core Starting Iris 3.58.0
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [HttpFrontend-17] mopidy.http.actor HTTP server running at [::ffff:0.0.0.0]:6680
Jun 24 07:26:55 MopidyPi mopidy[572]: INFO [MainThread] mopidy.commands Starting GLib mainloop
Jun 24 08:25:19 MopidyPi mopidy[572]: INFO [YTMusicBackend-3] mopidy_ytmusic YTMusic Found AUDIO_QUALITY_MEDIUM stream with 154909 bitrate for ljBt9ev_XD8
Jun 24 08:26:48 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic loaded 8 auto playlists sections
Jun 24 08:26:48 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 1.37s
Jun 24 09:08:00 MopidyPi mopidy[572]: INFO [YTMusicBackend-3] mopidy_ytmusic YTMusic Found AUDIO_QUALITY_MEDIUM stream with 154909 bitrate for ljBt9ev_XD8
Jun 24 09:25:28 MopidyPi mopidy[572]: INFO [YTMusicBackend-3] mopidy_ytmusic YTMusic Found AUDIO_QUALITY_MEDIUM stream with 154909 bitrate for ljBt9ev_XD8
Jun 24 09:26:50 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic loaded 8 auto playlists sections
Jun 24 09:26:50 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 1.21s
Jun 24 10:26:51 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic loaded 8 auto playlists sections
Jun 24 10:26:51 MopidyPi mopidy[572]: INFO [Thread-4] mopidy_ytmusic YTMusic Auto Playlists refreshed in 1.33s

Are you doing this with the RaspberryGPIOFrontend extension and a rotary encoder or something? Does it happen when using any other frontend?

If it’s just using the GPIO, I assume it’s something to do with this error in your startup log.

Do any errors appear in the log when you’re trying to scrub backwards?

I am attempting to use the Iris frontend via web browser to do the scrubbing. I am having separate issues with volume control using the buttons on my Pirate Audio. The only other controls that are on GPIO are play/pause and next track.

What exactly is scrubbing in this context?

Using the slider at the bottom of the interface to move to a different time in the track.

Do you have the latest version v4.1.1? Release v4.1.1 · mopidy/mopidy-spotify · GitHub

Oh, sorry I see now you posted your deps. You don’t have the latest fixed version. It should be available from apt.mopidy.com

That was it, I cant believe I didn’t see that update while looking at the repo. :man_facepalming:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.