Namo2 / InPlayerEpisodePreview

A Jellyfin plugin for the web and client version, which displayes an episode list inside the player
MIT License
125 stars 7 forks source link

[BUG] Plugin breaks Jellyfin #39

Open NathanaelLip opened 1 month ago

NathanaelLip commented 1 month ago

I have an issue where it goes to load assets for this plugin and give an error in the web console

GET http://192.168.12.34:8096/InPlayerPreview/ClientScript net::ERR_ABORTED 404 (Not Found)

I completely stops the webpage from being loaded. I have already attempted removing the files manually to get ride of this error as well as disabling the plugin in all Jellyfin configs but it seems to have done nothing.

The webpage is now just black. This is the ONLY error I am getting from anywhere. So it is the only thing I can think of as the problem.

Namo2 commented 1 month ago

So to get you back to a workable jellyfin instance, please

  1. Uninstall the plugin (removing the folder from the config/plugin directory is the only thing i can think of right now)
  2. If you are using docker, than just repull and redeploy the jellyfin image
  3. If you are not using docker, than you have to find your jellyfin installation, open the index.html and remove the line that looks like the following ''

Also try to clear your browser cache. CTRL + R on your jellyfin website should be enough

This should at least remove the call which causes the error. Sorry for the inconvenience.

To fix this error a few questions.

  1. Is the URL in the error the correct URL of your jellyfin instance or do you maybe use a subpath?
  2. How did you install the plugin?
  3. Did you delete any plugin files before you saw that error the first time?
  4. Which Jellyfin version are you running?
  5. Which Plugin version?
NathanaelLip commented 1 month ago

I managed to get it fixed by reinstalling jellyfin-web. Here's what I had done before reinstall to try and fix it.

I disabled the plugin script injection from the plugin config restarted, no effect.

I disabled the plugin in the system settings file, restarted, no effect.

I deleted the files and removed the plugin from Jellyfin configuration completely, restarted, no effect.

Lastly, I managed to find the web files and removed the script section you had pointed out already as I saw that's what it was attempting to pull and it was still not loading the webpage.

Now to anwser your questions:

  1. No I do not use any subpath.
  2. I used the same method as all plugins, through the dashboard
  3. Latest version, yes I am sure
  4. Latest version, yes I am sure

I am not 100% sure if this plugin was the cause for this problem, but I had a few issues before with installing it as well, would not load for a while. Hope this helps, if there is anything else you need info wise let me know.

teachhaylim commented 1 month ago

I got this error as well, "The webpage is now just black". I had to remove the plugin, reinstall the server and reinstall the plugin again.

There was an error log [2024-10-19 09:11:58.239 +07:00] [ERR] [3] Namo.Plugin.InPlayerEpisodePreview.Api.InPlayerPreviewController: InPlayerEpisodePreviewPlugin: "Namo.Plugin.InPlayerEpisodePreview.Web.InPlayerPreview.js"

image

Namo2 commented 1 month ago

Could you post the whole error line? I think it is cut in half

teachhaylim commented 1 month ago

this is the whole line

[2024-10-19 09:11:58.239 +07:00] [ERR] [3] Namo.Plugin.InPlayerEpisodePreview.Api.InPlayerPreviewController: InPlayerEpisodePreviewPlugin: "Namo.Plugin.InPlayerEpisodePreview.Web.InPlayerPreview.js"

image

Namo2 commented 1 month ago

Alright, there are a couple of changes for the next version which will release with jellyfin 10.10.0

It would be nice if you could hold on until then and check if the problem still persists. If you still have problems there, just send me another message and we will figure it out

Namo2 commented 1 month ago

@NathanaelLip so 10.10.0 is out now. Would be nice if you could test it again with the update versions

jramseygreen commented 3 weeks ago

I can confirm I was facing this issue previously. With the new update on 10.10.0, the problem is resolved for me!

NathanaelLip commented 3 weeks ago

I will try this new update then and get back to you, sorry about the delay. I have been incredibly busy lately.

NathanaelLip commented 3 weeks ago

I have reinstalled it now after updating to the newest version, the problem is I don't see the button for it while watching a show. But no errors in the console or anything so far. I will continue to mess with it and let you know if anything changes.

Namo2 commented 3 weeks ago

Sounds like a permission issue, maybe check the jellyfin console on startup.

If so you would need to fix that or adding the script yourself to the index.html I can explain further tomorrow or just add me on discord (namo__) for future support ^^