iFelix18 / Trakt-Userscripts

Userscripts to improve and add features to Trakt.tv
https://git.io/Trakt-Userscripts
MIT License
63 stars 1 forks source link

[BUG] Ratings doesn't work - 404 on Rottentomatoes #300

Open murkylife opened 1 year ago

murkylife commented 1 year ago

Describe the bug

I'm unable to get the ratings userscript to work on google chrome. It seems like the API call to rottentomatoes fails, and it can't handle it. I tried logging in to rottentomatoes, but no luck.

Would it be possible to disable rottentomatoes? I'm really just after the IMDB integration.

Userscripts

Ratings on Trakt

Browser

Google Chrome

Userscript manager

tampermonkey

Reproduction steps

  1. Open chrome
  2. Install plugin
  3. Add omdb api key
  4. Open any movie or tv series on trakt

Console logs

RATINGS ON TRAKT: OMDbApiKey is "XYZ"
userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:29 RATINGS ON TRAKT: hideDefaultRatings is "true"
userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:29 RATINGS ON TRAKT: logging is "true"
userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:29 RATINGS ON TRAKT: debugging is "true"
jquery.min.js:3 [Deprecation] The keyword 'searchfield-cancel-button' specified to an 'appearance' property is not standardized. It will be removed in the future.
add @ jquery.min.js:3
(anonymous) @ jquery.min.js:3
each @ jquery.min.js:2
each @ jquery.min.js:2
ja @ jquery.min.js:3
on @ jquery.min.js:3
register_observers @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
e @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
s @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
(anonymous) @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
each @ jquery.min.js:2
each @ jquery.min.js:2
chosen @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
(anonymous) @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:1028
(anonymous) @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:1044
jquery.min.js:3 [Deprecation] The keyword 'searchfield-cancel-button' specified to an 'appearance' property is not standardized. It will be removed in the future.
add @ jquery.min.js:3
(anonymous) @ jquery.min.js:3
each @ jquery.min.js:2
each @ jquery.min.js:2
ja @ jquery.min.js:3
on @ jquery.min.js:3
register_observers @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
e @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
s @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
(anonymous) @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
each @ jquery.min.js:2
each @ jquery.min.js:2
chosen @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:765
(anonymous) @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:1028
(anonymous) @ libs-9145629d0a6a2c670671eca839f1d9aa4841bee16a4d6e911710dcbca996273f.js:1044
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:248 ServiceWorker registration successful with scope: https://trakt.tv/
userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:29 RATINGS ON TRAKT: ID is 'tt0241527'
userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:48 200: https://www.omdbapi.com/?i=tt0241527&tomatoes=true&apikey=XYZ&r=json
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2204 safe: true
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2219 Snigel: load
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2232 Blockthrough: load
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2233 bt: 4
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:4326 loading: emojis
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2549 loading: users activity
jquery.min.js:4     GET https://cdn.snigelweb.com/adengine/trakt.tv/loader.js net::ERR_BLOCKED_BY_CLIENT
send @ jquery.min.js:4
ajax @ jquery.min.js:4
jQuery.cachedScript @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2199
parzivalSnigel @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2230
parzivalInit @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2217
(anonymous) @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:1553
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
dispatch @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:55
notifyApplicationAfterPageLoad @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:538
pageBecameInteractive @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:518
pageIsInteractive @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:406
pageIsComplete @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:407
PageObserver.interpretReadyState @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:402
jquery.min.js:4     GET https://snigelweb-com.videoplayerhub.com/videoloader.js?12346 net::ERR_BLOCKED_BY_CLIENT
send @ jquery.min.js:4
ajax @ jquery.min.js:4
jQuery.cachedScript @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2199
parzivalBT @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2235
parzivalInit @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2218
(anonymous) @ application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:1553
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
dispatch @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:55
notifyApplicationAfterPageLoad @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:538
pageBecameInteractive @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:518
pageIsInteractive @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:406
pageIsComplete @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:407
PageObserver.interpretReadyState @ turbo-694adf671b9be722aa9b327e9b26b769d91f9235b85e3633a58d001c9974bba1.js:402
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2230 Snigel: failed
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:2235 Blockthrough: failed
application-70b9118057326b679a180c2b1e582200ee1dbf958d5140c14221ff3701cdf668.js:4326 loading: emojis
userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:67 404: https://www.rottentomatoes.com/api/private/v2.0/search/?q=Harry%20Potter%20and%20the%20Sorcerer%27s%20Stone&t=movie&limit=25
VM234:1 Uncaught SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at Object.onload (userscript.html?name=Ratings-on-Trakt.user.js&id=da325907-bdb2-4391-877b-562d05d630ae:67:941)
    at St (<anonymous>:9:89)
    at s.onload (<anonymous>:25:215)
    at St (<anonymous>:9:89)
    at <anonymous>:33:478
    at St (<anonymous>:9:89)
    at r (<anonymous>:22:484)
    at <anonymous>:23:112
    at <anonymous>:69:256


### Screenshots

_No response_

### Is there an existing issue for this?

- [X] I have searched the existing issues