Closed vn-ki closed 4 years ago
I did some digging around and it looks like RatS tries to login even after trying to login.
The page is redirected to home page and thus cannot find the login form.
Unfortunately, I do not know the code base thus cannot understand what could be causing this.
Inserting break after this line
fixes the problem.
This leads to me to think that _user_is_not_logged_in
is not working correctly, at least for letterboxd.
Letterboxd to Movielens doesn't work anyway, I guess :(
ERROR: There are no movies with an IMDB id in the parsed data. As the target site is looking for this id to match the data, there is nothing left to do. A workaround would be to upload th
e data to a third site, which knows the IMDB id, and parse again from there.
Hey @vn-ki
Thank you for bringing this to my attention and your detailed description. _user_is_not_logged_in()
is implemented individually for letterboxd to look for the username.
The standard would actually be to look for the login form elements. I see why you suspect this to be the issue and I came to the same conclusion after reading your first comment. However, after multiple runs, I couldn't reproduce the behaviour with the additional login attempt after successful login. I removed the special handling now, so the error you pasted should not occur anymore.
As for the issue with the Letterboxd to Movielens migration of data, I can only say the same thing here as I already put in the console output you saw. As Movielens' own CSV Importer matches the data by IMDB id. The Alternative would be to let the script rate the movies individually (if the source does not provide sufficient data for the destination for matching movies), which will of course increase the runtime of the script significantly. I will create a separate ticket for this particular case to be considered.
Describe the bug Exception
Expected behavior No excpetion
Desktop (please complete the following information):
arch
geckodriver 0.24.0
python3 --version
-->pip --version
-->python3 transfer_ratings.py --source letterboxd --destination movielens
Stacktrace