Code Monkey home page Code Monkey logo

Comments (8)

rlauuzo avatar rlauuzo commented on August 12, 2024 1

Find index.html in C:\Program Files\Jellyfin\Server\jellyfin-web and modify the permissions for your user to Full Control. Then restart Jellyfin.

from intro-skipper.

renash2me avatar renash2me commented on August 12, 2024 1

It worked! Thank you so much!

from intro-skipper.

zohebhynus avatar zohebhynus commented on August 12, 2024 1

@AbandonedCart
That fixed it. Now the logs shows that index.html has been updated correctly

[2024-08-04 12:07:41.570 -07:00] [INF] [1] Namo.Plugin.InPlayerEpisodePreview.InPlayerEpisodePreviewPlugin: Found client script injected in "C:\Program Files\Jellyfin\Server\jellyfin-web\index.html"
[2024-08-04 12:07:41.573 -07:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "InPlayerEpisodePreview" "1.2.1.0"
[2024-08-04 12:07:41.742 -07:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Skip button already added
[2024-08-04 12:07:41.984 -07:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Intro Skipper" "0.2.0.12"

The skip button still does not show up, but I can look into debugging further and go through the other issues on github to figure out what the problem is.

Thanks for the help!

from intro-skipper.

zohebhynus avatar zohebhynus commented on August 12, 2024

Hey Guys,

I am running the Jellyfin server on my personal computer on Windows 10.

I tried the solution that 'rlauuzo' mentioned and it still doesn't work for me. I still get the permission error in the logs

[2024-08-03 13:04:11.302 -07:00] [ERR] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Failed to add skip button to web interface. Try "changing the permissions of C:\Program Files\Jellyfin\Server\jellyfin-web\index.html" and restarting the server. Error: "System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Jellyfin\Server\jellyfin-web\index.html' is denied.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   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 ConfusedPolarBear.Plugin.IntroSkipper.Plugin.InjectSkipButton(String indexPath)
   at ConfusedPolarBear.Plugin.IntroSkipper.Plugin..ctor(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer, IServerConfigurationManager serverConfiguration, ILibraryManager libraryManager, IItemRepository itemRepository, ILogger`1 logger)"

This is the permission page for index.html
image
To make sure I didn't miss anything, I provided full control to all groups.

I even tried adding
<script src="configurationpage?name=skip-intro-button.js"></script> directly to the index.html file and it didn't work.

Does anyone know what I am doing wrong?

P.S solving this index.html permissions issue will also resolve another issue with regards to this plugin (https://github.com/Namo2/InPlayerEpisodePreview) as well. Any help is appreciated.

from intro-skipper.

rlauuzo avatar rlauuzo commented on August 12, 2024

Have you restarted Jellyfin after changing the permissions?

from intro-skipper.

zohebhynus avatar zohebhynus commented on August 12, 2024

I did restart the Jellyfin server instance after changing the permissions. the logs were from the new instance. I should've mentioned that. My apologies.

It still doesn't work. :/

from intro-skipper.

rlauuzo avatar rlauuzo commented on August 12, 2024

I'm not sure what else could be causing the issue. Maybe try rebooting Windows and see if that resolves it?

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Did you only change permissions to the index and not the entire folder?

You need the permission applied to the entire web folder or the index change will get cancelled out.

from intro-skipper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.