Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Introducing pleezer: a Deezer Connect player
#11
The PR is more of a question for @bitlab but it looks good to my eye so I would just go ahead and merge it.

I won't be able to get to pleezer until after 9.1.5 is shipped, hopefully this month and so no immediate need for a new build.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
@roderickvd I replied in the github issue.
Reply
#13
(11-24-2024, 11:31 AM)Tim Curtis Wrote: The PR is more of a question for @bitlab but it looks good to my eye so I would just go ahead and merge it.

I won't be able to get to pleezer until after 9.1.5 is shipped, hopefully this month and so no immediate need for a new build.

That’s actually good, because now that other people are trying it, I’m getting the first compatibility issues to resolve. Good to have this shakedown period.
maintainer of librespot and pleezer
Reply
#14
Just released v0.3.0 with lots of fixes, including an important one where authorization failed for users who had never used the web player before.
maintainer of librespot and pleezer
Reply
#15
Nice.

I added most of the renderer framework for pleezer but still need to do an initial debug and test before committing the changes.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#16
WIP status: so far so good :-)

- v0.3.0 deb package built
- command line test ok

Code:
# Launch
pi@moode9:~ $ sudo pleezer --name "moOde Deezer" --device-type "web" --device "ALSA|_audioout" --secrets-file "/home/pi/secrets.toml"
[2024-11-29T15:17:57Z INFO  pleezer] starting pleezer/0.3.0; release; en
[2024-11-29T15:17:57Z INFO  pleezer] parsing secrets from /home/pi/secrets.toml
[2024-11-29T15:17:58Z INFO  pleezer::player] audio output device: _audioout on ALSA
[2024-11-29T15:17:58Z INFO  pleezer::remote] logging in with email and password
[2024-11-29T15:18:00Z INFO  pleezer::remote] ready for discovery

# Connect from iPhone (Deezer Premium)
[2024-11-29T15:25:21Z INFO  pleezer::player] setting repeat mode to None
[2024-11-29T15:25:21Z INFO  pleezer::remote] setting queue to 94E2173A-DD47-4A29-B5DA-C8CFC11A7123
[2024-11-29T15:25:22Z INFO  pleezer::remote] user casting quality: High Quality
[2024-11-29T15:25:22Z INFO  pleezer::remote] connected to xxxxxxxx
[2024-11-29T15:25:23Z INFO  pleezer::track] downloading 10919182 bytes for track 108733460: "Jeff Buckley - Lilac Wine"
[2024-11-29T15:25:24Z INFO  pleezer::track] completed download of track 108733460: "Jeff Buckley - Lilac Wine"
[2024-11-29T15:25:25Z INFO  pleezer::track] downloading 9749942 bytes for track 2626489212: "Marc Broussard - Cry To Me"
[2024-11-29T15:25:26Z INFO  pleezer::track] completed download of track 2626489212: "Marc Broussard - Cry To Me"

# Disconnect
[2024-11-29T15:27:05Z ERROR pleezer::remote] controller is not responding
[2024-11-29T15:27:05Z INFO  pleezer::remote] disconnected from xxxxxxxx

   

TODO:

- Test actual audio output
- Implement event handling and metadata/cover display

ISSUES:

1. The Mac desktop Deezer app does not seem to have a "Discover Players" feature.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#17
Awesome.

(11-29-2024, 03:37 PM)Tim Curtis Wrote: ISSUES:

1. The Mac desktop Deezer app does not seem to have a "Discover Players" feature.

Yes, this is a limitation of Deezer: https://support.deezer.com/hc/en-gb/arti...er-Connect
maintainer of librespot and pleezer
Reply
#18
WIP status update.

Metadata and cover art working

   

Next is to create the Deezer Config screen. The params in the cfg_deezer table are below:
1|normalize_volume|No
2|no_interruptions|No
3|format|S16
4|RESERVED_4|
5|RESERVED_4|
6|RESERVED_4|
7|RESERVED_4|
8|RESERVED_4|
9|email|
10|password|

Names and locations for resource files:
Code:
/etc/deezer/deezer.toml              - secrets file containing email and password
/var/log/moode_pleezer.log           - records -v output
/var/local/www/commandw/deezevent.sh - hook file for processing events

ISSUE:

1. Output volume (from pleezer) is almost 100% even though "Deezer Connect" slider volume on iPhone is almost 0.
Note: When a renderer connects to moode, ALSA volume if present is set to 100% (0dB) based on the assumption the volume is controlled entirely by the client app.
2. After "disconnect" event happens the ALSA output is still busy.

OBSERVATION:

1. Connection and metadata updates are super fast :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#19
(11-29-2024, 10:40 PM)Tim Curtis Wrote: ISSUE:

1. Output volume (from pleezer) is almost 100% even though "Deezer Connect" slider volume on iPhone is almost 0.
Note: When a renderer connects to moode, ALSA volume if present is set to 100% (0dB) based on the assumption the volume is controlled entirely by the client app.
2. After "disconnect" event happens the ALSA output is still busy.

#1 - Can you share the trace log messages? What happens if you change the volume?

#2 - Check question to be sure: the output is probably also busy when you haven't even connected yet? At the moment it opens the output, and never releases it. Indeed I can look into opening on connection, and closing on disconnection.
maintainer of librespot and pleezer
Reply
#20
#2b - Or do you mean that when you force-quit the iOS app, the queue continues to play? Yeah, I thought to mimic the behavior from Google Cast. Should we change it?
maintainer of librespot and pleezer
Reply


Forum Jump: