Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button not showing up #23

Closed
Plop opened this issue Jul 6, 2024 · 5 comments
Closed

Button not showing up #23

Plop opened this issue Jul 6, 2024 · 5 comments

Comments

@Plop
Copy link

Plop commented Jul 6, 2024

Hi,

I installed the latest plugin version (1.2.1.0), on Jellyfin 10.9.7, but the button is not showing up in the player. I tried on Firefox, Chrome, Brave, and tthe Android Jellyfin app, I just can't see it. I rebooted Jellyfin multiples times, even the docker container, but it doesn't work.

Could anyone help ? Thanks !

@Namo2
Copy link
Owner

Namo2 commented Jul 6, 2024

Hi,

do you have some jellyfin logs for me after startup of the server?
There was a similar issue in the past.
Some permission issues caused the error.
Have a look at #10

@Plop
Copy link
Author

Plop commented Jul 6, 2024

Hi,

I haven't thought of looking in the logs, but you're right !


[2024-07-06 12:41:21.278 +00:00] [INF] [62] Namo.Plugin.InPlayerEpisodePreview.InPlayerEpisodePreviewPlugin: Attempting to inject preview script code in "/usr/share/jellyfin/web/index.html"
[2024-07-06 12:41:21.279 +00:00] [ERR] [62] Namo.Plugin.InPlayerEpisodePreview.InPlayerEpisodePreviewPlugin: Encountered exception while writing to "/usr/share/jellyfin/web/index.html": "System.UnauthorizedAccessException: Access to the path '/usr/share/jellyfin/web/index.html' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
   at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
   at Namo.Plugin.InPlayerEpisodePreview.InPlayerEpisodePreviewPlugin..ctor(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer, ILogger`1 logger, IServerConfigurationManager configurationManager)"
[2024-07-06 12:41:21.280 +00:00] [INF] [62] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "InPlayerEpisodePreview" "1.2.1.0"

I added the write permissions for "others" on index.html, and after restarting the server, I can see the button, thanks !

I'm wondering if there is a proper way to do that ? I'm running Jellyfin in a docker compose environment (based on https://hub.docker.com/r/linuxserver/jellyfin ), but the entire /usr/share/jellyfin directory is under root:root permissions

@Namo2
Copy link
Owner

Namo2 commented Jul 6, 2024

I'm wondering if there is a proper way to do that ? I'm running Jellyfin in a docker compose environment (based on https://hub.docker.com/r/linuxserver/jellyfin ), but the entire /usr/share/jellyfin directory is under root:root permissions

Yeah, it is a bit tricky with so many different systems. As far as i know, Jellyscrub had the same problem in the past.
Happy for you that it works now.

@Namo2 Namo2 closed this as completed Jul 6, 2024
@Druidblack
Copy link

Druidblack commented Jul 7, 2024

I use jf installed on debian. The button was not displayed either. After giving write permissions to other users to the file index.html . (after restarting the server) A series selection button has appeared.

It may be worth adding this information, that most likely the lack of a button is caused by a lack of access rights and changing them can help.

Therefore, the problem now refers to the discussion of the problem, where it is unclear what to do to make the button appear. And after this discussion, it became immediately clear what needs to be done to make the button work.

@Namo2
Copy link
Owner

Namo2 commented Jul 7, 2024

Yes, I tried to describe it in the readme.
I will change it a little so that it should be clearer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants