I've been using your script for a while and I noticed that just a bit ago crunchyroll decided to randomly update the video player and now the script crashes. I was waiting to see if you would update the script, but so far the orginal person have not updated the script yet.
I did try to mess with your code myself and I did figure out which portion is causing the crash:
newscript = newscript.replace(/\"hardsub_lang\":null/gi, '"hardsub_lang":"' + profilelang + '"');
This specific line seems to be the reason of the crash, but I can't figure out why replacing the hardsub_lang = null to hardsub_lang = profilelang causes the player to crash.
New crunchyroll player
Hey,
I've been using your script for a while and I noticed that just a bit ago crunchyroll decided to randomly update the video player and now the script crashes. I was waiting to see if you would update the script, but so far the orginal person have not updated the script yet.
I did try to mess with your code myself and I did figure out which portion is causing the crash:
newscript = newscript.replace(/\"hardsub_lang\":null/gi, '"hardsub_lang":"' + profilelang + '"');
This specific line seems to be the reason of the crash, but I can't figure out why replacing thehardsub_lang = null
tohardsub_lang = profilelang
causes the player to crash.Thanks.