philippe44 / lms-deezer

MIT License
35 stars 7 forks source link

8 Seconds delay before playing #37

Open rbuki opened 4 months ago

rbuki commented 4 months ago

Hello philippe44

First, a huge thank you for this great plugin. I already quit my deezer family by end of year but now they get another chance. (they should pay you)!

Unfortunatelly, I have this delay issue. Everytime I play any song from deeezer, I have a delay for about 8 seconds. No matter what I choose as quality settings in the plugin section (128kb Mp3 is the same as highest FLAC quality) Server is runnig on proxmox, amd64 with lot of ressources. Radio streaming, local music and also qobuz streaming have no or small delays before playing. (ok, qobuz about 1 or 2 seconds)

I own a deezer family, ARL are up to date for all three family members. High qualtiy streams are working as high quality - no dowsizinh to 128kb mp3. Crypto is at latest version

Versions: Version: 9.0.0 - 1713175019 @ Tue 16 Apr 2024 02:36:58 AM CEST Betriebssystem: Debian - DE - utf8 Plattformarchitektur: x86_64-linux Perl-Version: 5.32.1 - x86_64-linux-gnu-thread-multi Audio::Scan: 1.06 IO::Socket::SSL: 2.069 Datenbankversion: DBD::SQLite 1.58 (sqlite 3.22.0)

AirPlay bridge 1.7.7 Analytikdaten teilen 1.1 Deezer 2.81.4 Digitale Eingänge 1.0 Erweiterte Musik Menüs 1.0 Erweiterte Tag Ansicht 1.0 Geräte Gruppen 0.17.2 Material-Skin 4.5.2 Musiksammlung erneut durchsuchen 1.0 Musikwiedergabe nie anhalten 1.0.0 Netzwerktest 1.0 Online Musiksammlungsintegration 1.0 Qobuz 3.5.0 Sounds & Effekte 1.1 UPnP/DLNA bridge 3.3.9 UPnP/DLNA Media Interface 1.0 Volltextsuche 1.0.0 Wiedergabeliste speichern 1.0 Zufallsmix 1.0

I could send some logs (with deezer local debug) but I don't like to attach it here as this seems to have a lot of tokens in it and I cannot make sure to remove all of them. Can I do someting like a private message? Please let me know how I can help with data or information. From the logs, it looks like the delays are comming from the deezer api while asking for user information.

philippe44 commented 4 months ago

Yes, it's indeed the Deezer api that takes a long time to return a token and I've not been able to do anything to speed this up. These are csrf tokens with a very short ttl, so don't know what else to do (there is surely a solution but all this is undocumented)

rbuki commented 4 months ago

Oh, bad to read this. That reads such as the issue because be cloased because there will be no planned further progress from your side. Anyway. Thank you for your time (!) you spent on the deezer local plugin. I'll recognize if you found a solution "by luck".