Greasy Fork is available in English.
Import ratings for movies, TV series and episodes from a csv file.
< IMDB Ratings Importerについてのフィードバック
Thanks for bug report.
I actually also mixed up 'your ratings' and 'your rating' in the code, but caught it myself when testing csv file exported from IMDB. Apparently I forgot to change it in the description.
The problem with line endings is fixed. But for clarification, line endings didn't have to be Unix (even so I kind of mistakenly assumed that they are). If 'your rating' is not the last field in the file, which is true if csv file was exported from IMDB, then it would have worked.
I'm still working on the last problem. I reproduced it by using Violentmonkey with Firefox.
Nice!
I haven't looked too close, but it seems the entire IMDb cookie fails to parse on my setup. I take it it works in e.g. Greasemonkey?
I'm not sure where those headers came from, but the problem was with the same-origin policy. Request to set rating is send to a different domain name. Because of this Violentmonkey didn't add cookies with the request. The script used JavaScript XMLHttpRequest for this. But GM.xmlHttpRequest allows requests to cross the same origin policy boundaries. By using it instead, the problem should be fixed. I tested with Greasemonkey and Violentmonkey. All worked.
Tested 1.2, works on Tampermonkey and Violentmonkey. Great job. I was beginning to wonder if maybe violence isn't the solution...
It is "your rating" (case insensitive), else it won't work.
Also, if the file has Windows line endings, then
fieldNames === ['const', 'your rating\r']
which fails validation. The line endings have to be Unix.And then it runs... each request failing:
Since the following headers are missing:
Nothing is imported. Windows, Chrome, Violentmonkey.