cecobask / imdb-trakt-sync

Automatic sync from IMDb to Trakt (watchlist, lists, ratings and history) using GitHub actions.
MIT License
97 stars 229 forks source link

fix: handle captcha prompt when authenticating #43

Closed cecobask closed 4 months ago

cecobask commented 4 months ago

The syncer was initially set up to wait on two conditions after the submit button on the authentication page is pressed:

I did not consider that captcha prompts would show up after a couple of failed authentication attempts. To address this issue, I added a safeguard which would report if a captcha prompt had hindered the authentication flow and cancel the sync early. Without the latest changes, the sync can get stuck waiting for one of the above two conditions until the timeout kicks in.

I also added bot detection prevention, but that unfortunately will not eliminate the possibility of captcha prompts appearing.

Resolves #41 Resolves #42