Open Oudstand opened 11 months ago
I got the same problem. I tried to fix the problem here https://github.com/ImamAzim/tolino-calibre-sync I think it should work, but only with Buecher.de
The login flow for Thalia at least had some pretty aggressive anti-bot measures last I checked, hence why I added the use_device approach. There appear to have been some changes to the API itself, as far as I can tell the registerhw request has been replaced with a POST to https://api.pageplace.de/v1/devices? I'm going to have to poke at this some more. To be honest, I've not had much time to work on this, lately, and don't currently have an instance of it running since it got broken in a server move. I will get to it eventually, I'll also try to have a look at your fork in a bit more detail - you seem to be using mechanize to use a (more real) automated browser for the login flow, maybe that will let me make login work for some of the other partners again, as well.
concerning my fork, it is only a few lines that I changed. I tried with mechanize, but i saw that for almost all the partner it still detects that it is a bot. However, I saw that with buecher.de, it is different. With mechanize I can obtain the cookie, and then the rest is the same. i guess that for the other partners we should try another approach you mention, but indeed, it takes time! If I find something i will keep you informed,
I always get errors that the login fails. I've tried it for Thalia and Osiander and it behaves exactly the same.
raise TolinoException('login to {} failed.'. tolinocloud.TolinoException: login to Thalia.de failed.
I tried logging in with username and password and also with the refresh token and the hardware id. The
registerhw
request doesn't show up, but I could find the refresh token and hardware id in other requests. I didn't managed it to login.