scrobbles not logged on ListenBrainz, but LastFM works fine
Environment
- Lollypop version: 1.4.19
- GTK+ version: 2.24.32 and 3.22.30
- Operating system: Ubuntu 18.04
Bug
The listens show up on ListenBrainz as "Now Playing", but they don't get logged when finished. They are however logged fine on LastFM.
Here is some output when running in debug mode with: flatpak run org.gnome.Lollypop --debug
[INFO] 2021-04-14 16:58:50 lollypop.collection_scanner::__scan: execution time 0:51.868213
[DEBUG] 2021-04-14 16:58:50 https://ws.audioscrobbler.com/2.0/: bytearray(b'<?xml version="1.0" encoding="UTF-8"?>\n<lfm status="ok">\n <nowplaying>\n <track corrected="0">A Little Longing Goes Away</track>\n <artist corrected="0">The Books</artist>\n <album corrected="0">Lost and Safe</album>\n <albumArtist corrected="0">The Books</albumArtist>\n <ignoredMessage code="0"></ignoredMessage>\n </nowplaying>\n</lfm>\n') -> {'album': 'Lost and Safe', 'albumArtist': 'The Books', 'api_key': '7a9619a850ccf7377c46cf233c51e3c6', 'artist': 'The Books', 'duration': '210', 'method': 'track.updateNowPlaying', 'sk': 's0oiC5CnsnKLNMoXtGrceckOOmlIf7A0', 'track': 'A Little Longing Goes Away', 'api_sig': 'cfd4921b49e923b9c68e53dc83a72a21'}
[DEBUG] 2021-04-14 16:58:50 https://api.listenbrainz.org/1/submit-listens: bytearray(b'{"status":"ok"}\n')
[DEBUG] 2021-04-14 17:02:18 Player::__on_stream_about_to_finish(): <__gi__.GstPlayBin object at 0x7f790289ddc0 (GstPlayBin at 0x556f926f1840)>
[DEBUG] 2021-04-14 17:02:18 BinPlayer::_load_track(): file:///run/user/1000/doc/18fb2f31/Musique/The%20Books/(2005)%20Lost%20and%20Safe/02%20Be%20Good%20to%20Them%20Always.flac
[DEBUG] 2021-04-14 17:02:19 https://ws.audioscrobbler.com/2.0/: bytearray(b'<?xml version="1.0" encoding="UTF-8"?>\n<lfm status="ok">\n <scrobbles ignored="0" accepted="1">\n <scrobble>\n <track corrected="0">A Little Longing Goes Away</track>\n <artist corrected="0">The Books</artist>\n <album corrected="0">Lost and Safe</album>\n <albumArtist corrected="0">The Books</albumArtist>\n <timestamp>1618383529</timestamp>\n <ignoredMessage code="0"></ignoredMessage>\n </scrobble>\n </scrobbles>\n</lfm>\n')
[DEBUG] 2021-04-14 17:02:19 https://api.listenbrainz.org/1/submit-listens: bytearray(b'{"status":"ok"}\n')
[DEBUG] 2021-04-14 17:02:19 Player::_on_stream_start(): file:///run/user/1000/doc/18fb2f31/Musique/The%20Books/(2005)%20Lost%20and%20Safe/02%20Be%20Good%20to%20Them%20Always.flac
[DEBUG] 2021-04-14 17:02:20 https://ws.audioscrobbler.com/2.0/: bytearray(b'<?xml version="1.0" encoding="UTF-8"?>\n<lfm status="ok">\n <nowplaying>\n <track corrected="0">Be Good to Them Always</track>\n <artist corrected="0">The Books</artist>\n <album corrected="0">Lost and Safe</album>\n <albumArtist corrected="0">The Books</albumArtist>\n <ignoredMessage code="0"></ignoredMessage>\n </nowplaying>\n</lfm>\n') -> {'album': 'Lost and Safe', 'albumArtist': 'The Books', 'api_key': '7a9619a850ccf7377c46cf233c51e3c6', 'artist': 'The Books', 'duration': '291', 'method': 'track.updateNowPlaying', 'sk': 's0oiC5CnsnKLNMoXtGrceckOOmlIf7A0', 'track': 'Be Good to Them Always', 'api_sig': 'dfe8421af4cb17e3b74f4bbb92056126'}
[DEBUG] 2021-04-14 17:02:20 https://api.listenbrainz.org/1/submit-listens: bytearray(b'{"status":"ok"}\n')
[DEBUG] 2021-04-14 17:07:09 Player::__on_stream_about_to_finish(): <__gi__.GstPlayBin object at 0x7f790289ddc0 (GstPlayBin at 0x556f926f1840)>
[DEBUG] 2021-04-14 17:07:10 BinPlayer::_load_track(): file:///run/user/1000/doc/18fb2f31/Musique/The%20Books/(2005)%20Lost%20and%20Safe/03%20Vogt%20Dig%20for%20Kloppervok.flac
[DEBUG] 2021-04-14 17:07:10 https://ws.audioscrobbler.com/2.0/: bytearray(b'<?xml version="1.0" encoding="UTF-8"?>\n<lfm status="ok">\n <scrobbles ignored="0" accepted="1">\n <scrobble>\n <track corrected="0">Be Good to Them Always</track>\n <artist corrected="0">The Books</artist>\n <album corrected="0">Lost and Safe</album>\n <albumArtist corrected="0">The Books</albumArtist>\n <timestamp>1618383739</timestamp>\n <ignoredMessage code="0"></ignoredMessage>\n </scrobble>\n </scrobbles>\n</lfm>\n')
[DEBUG] 2021-04-14 17:07:10 https://api.listenbrainz.org/1/submit-listens: bytearray(b'{"status":"ok"}\n')
[DEBUG] 2021-04-14 17:07:11 Player::_on_stream_start(): file:///run/user/1000/doc/18fb2f31/Musique/The%20Books/(2005)%20Lost%20and%20Safe/03%20Vogt%20Dig%20for%20Kloppervok.flac
[DEBUG] 2021-04-14 17:07:11 https://ws.audioscrobbler.com/2.0/: bytearray(b'<?xml version="1.0" encoding="UTF-8"?>\n<lfm status="ok">\n <nowplaying>\n <track corrected="0">Vogt Dig for Kloppervok</track>\n <artist corrected="0">The Books</artist>\n <album corrected="0">Lost and Safe</album>\n <albumArtist corrected="0">The Books</albumArtist>\n <ignoredMessage code="0"></ignoredMessage>\n </nowplaying>\n</lfm>\n') -> {'album': 'Lost and Safe', 'albumArtist': 'The Books', 'api_key': '7a9619a850ccf7377c46cf233c51e3c6', 'artist': 'The Books', 'duration': '234', 'method': 'track.updateNowPlaying', 'sk': 's0oiC5CnsnKLNMoXtGrceckOOmlIf7A0', 'track': 'Vogt Dig for Kloppervok', 'api_sig': 'f1522a8f40ee204dc813f174987b232c'}
[DEBUG] 2021-04-14 17:07:12 https://api.listenbrainz.org/1/submit-listens: bytearray(b'{"status":"ok"}\n')