digitalec / deemon

Monitor specified artists for new releases
GNU General Public License v3.0
176 stars 15 forks source link

Unable to Login with correct ARL #84

Closed indicatelovelace closed 1 year ago

indicatelovelace commented 1 year ago

ARL is definitly correct, deemix/deemix-gui are working with this one. Does it need special formating?

2022-12-16 22:24:37 [DEBUG] deemon.cli: deemon 2.17 2022-12-16 22:24:37 [DEBUG] deemon.cli: command: "--verbose download -u https://www.deezer.com/us/album/303958517" 2022-12-16 22:24:37 [DEBUG] deemon.cli: Python 3.10.8 2022-12-16 22:24:37 [DEBUG] deemon.cli: Linux-6.0.12-zen1-1-zen-x86_64-with-glibc2.36 2022-12-16 22:24:37 [DEBUG] deemon.cli: deemon appdata is located at /home/indicatelove/.config/deemon 2022-12-16 22:24:37 [DEBUG] deemon.core.config: Loading configuration, please wait... 2022-12-16 22:24:37 [DEBUG] deemon.core.db: Database version 3.6 2022-12-16 22:24:37 [DEBUG] deemon.core.config: Loaded config for profile 1 (default) [...]

2022-12-16 22:24:45 [DEBUG] deemon.core.dmi: Looking for ARL... 2022-12-16 22:24:45 [DEBUG] deemon.core.dmi: ARL found in deemon config :: Found ARL in deemon config, checking... FAILED 2022-12-16 22:24:48 [DEBUG] deemon.core.dmi: ARL Failed: [REDACTED] 2022-12-16 22:24:48 [ERROR] deemon.core.dmi: Unable to login using ARL found in deemon config 2022-12-16 22:24:48 [DEBUG] deemon.core.dmi: ARL not found in $HOME/config/deemix/config.json 2022-12-16 22:24:48 [ERROR] deemon.core.dmi: No ARL was found, aborting... 2022-12-16 22:24:48 [ERROR] deemon.cmd.download: Failed to login, aborting download...

digitalec commented 1 year ago

No special formatting required. I ran your ARL through Deezer's API and it doesn't appear to be valid:

'USER': {'USER_ID': 0, 'USER_PICTURE': '', 'INSCRIPTION_DATE': '',

When I run my own through, my USER_ID is populated and the INSCRIPTION_DATE shows the date I first subscribed. I would make sure the downloads through deemix aren't low quality (128k) and also login to Deezer and see if the ARL is different.

The way deemon decides if your ARL is expired is if your configuration asks for 320/FLAC but Deezer reports 128 as the highest. You can override it by setting check_account_status to False but then you'll get low quality downloads.

indicatelovelace commented 1 year ago

So I checked again and Deezer did in fact change my arl. The new one works as expected. Now the weird part is, deemix is still working with the old one. I have no idea why though. Thanks anyway for you help.