Code Monkey home page Code Monkey logo

Comments (47)

rlauuzo avatar rlauuzo commented on August 12, 2024 2

i think im getting this too

2024-04-03 09:17:51.985	
[18:17:51] [ERR] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Failed to add skip button to web interface. Try running `sudo chown jellyfin /usr/share/jellyfin/web/index.html` (if this is a native installation) and restarting the server. Error: System.UnauthorizedAccessException: Access to the path '/usr/share/jellyfin/web/index.html' is denied.

just to be clear i run dockerso i don't even have access to this file

If you're running the linuxserver/jellyfin image, you can use a custom script https://docs.linuxserver.io/general/container-customization/#custom-scripts and change ownership to abc

#!/bin/bash

chown abc /usr/share/jellyfin/web/index.html

from intro-skipper.

ramonskie avatar ramonskie commented on August 12, 2024 1

the custom chown script fixed it for me as well

from intro-skipper.

Cheffbenny avatar Cheffbenny commented on August 12, 2024 1

Do you use Docker Desktop with WSL2?

No, just the base windows server installation. I was struggling to find a fix given the permissions where correct and plugin was installed and scanned successfully, I looked to the index.html (incase the plugin was working but not showing) and this thread was the only one I found with a reference to the script in html format.
I was wanting to avoid using the original modified web interface from confused polar bear.

Working well on the base web interface.

Also shows on android mobile app (using the web player client settings), however when skipping to a different time or using the button the media just resets to 0:00. - This is just feedback and doesn't affect using integrated player or external player which work fine but obviously doesn't pull plugins over, though they are designed for mobile use anyway.

from intro-skipper.

jackblk avatar jackblk commented on August 12, 2024 1

If you're using official 10.9.0 jellyfin docker image it is in /jellyfin/jellyfin-web/index.html

For now I patch my image by using this script:

docker exec -u root -it jellyfin chown 1000 /jellyfin/jellyfin-web/index.html

(1000 is my UID, change it to your user id)

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024 1

I tried changing the opacity just now, that's not it.

Ahh, yeah the API most likely changed. I noticed (and made a pull request) for something similar in this repo

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024 1

Working on a pr now to add logic for a context root (but if you have a better way to check for context root, by all means ignore my solution and implement that! :) )

from intro-skipper.

jumoog avatar jumoog commented on August 12, 2024 1

its done

from intro-skipper.

jumoog avatar jumoog commented on August 12, 2024 1

its okay for now

from intro-skipper.

phyzical avatar phyzical commented on August 12, 2024

i think im getting this too

2024-04-03 09:17:51.985	
[18:17:51] [ERR] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Failed to add skip button to web interface. Try running `sudo chown jellyfin /usr/share/jellyfin/web/index.html` (if this is a native installation) and restarting the server. Error: System.UnauthorizedAccessException: Access to the path '/usr/share/jellyfin/web/index.html' is denied.

just to be clear i run dockerso i don't even have access to this file

from intro-skipper.

phyzical avatar phyzical commented on August 12, 2024

thx that seemed to sort it

from intro-skipper.

jumoog avatar jumoog commented on August 12, 2024

Thank you @rlauu

from intro-skipper.

hanshaoji avatar hanshaoji commented on August 12, 2024

i think im getting this too

2024-04-03 09:17:51.985	
[18:17:51] [ERR] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Failed to add skip button to web interface. Try running `sudo chown jellyfin /usr/share/jellyfin/web/index.html` (if this is a native installation) and restarting the server. Error: System.UnauthorizedAccessException: Access to the path '/usr/share/jellyfin/web/index.html' is denied.

just to be clear i run dockerso i don't even have access to this file

If you're running the linuxserver/jellyfin image, you can use a custom script https://docs.linuxserver.io/general/container-customization/#custom-scripts and change ownership to abc

#!/bin/bash

chown abc /usr/share/jellyfin/web/index.html

I'm running the nyanmisaka/jellyfin image,

<script src="configurationpage?name=skip-intro-button.js"></script>

has been injected to index.html,but it's not working.

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Is the button enabled in the plugin settings?

from intro-skipper.

hanshaoji avatar hanshaoji commented on August 12, 2024

Is the button enabled in the plugin settings?

Yes,"Show skip intro button" is checked.

from intro-skipper.

Cheffbenny avatar Cheffbenny commented on August 12, 2024

Just adding this to help others.

I am running a windows server, and adding <script src="configurationpage?name=skip-intro-button.js"></script> into the Jellyfin-web/index.html before the fixed the issue of the skip intro button not showing for me.

This is based on the installation instructions given, you will need to update the the source if the location differs.

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

You should be able to fix the permissions on Windows much easier than Docker.

https://www.reddit.com/r/jellyfin/comments/dgc7nt/whats_up_with_windows_and_1040/

from intro-skipper.

jumoog avatar jumoog commented on August 12, 2024

Just adding this to help others.

I am running a windows server, and adding <script src="configurationpage?name=skip-intro-button.js"></script> into the Jellyfin-web/index.html before the fixed the issue of the skip intro button not showing for me.

This is based on the installation instructions given, you will need to update the the source if the location differs.

Do you use Docker Desktop with WSL2?

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

For unraid:

"Add another Path, Port, Variable, Label or Device"

image thumb png e0062b1e664f0d6c1f8c3bfd0a2c8435

/mnt/user/appdata/custom-scripts/ is the location where the custom script is located in your filesystem.

Originally posted by @jumoog in #150 (comment)

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

I'm getting this error as well. Tried cloning the entire jellyfin-web and mounting it locally (intro button code got added after this), as well as the docker exec method above (code was injected here as well).. Both fails to show the button.

Running docker, official 10.9.1 image, chromium for the web player

from intro-skipper.

jackblk avatar jackblk commented on August 12, 2024

I'm getting this error as well. Tried cloning the entire jellyfin-web and mounting it locally (intro button code got added after this), as well as the docker exec method above (code was injected here as well).. Both fails to show the button.

Running docker, official 10.9.1 image, chromium for the web player

@Cloud9Developer you need to run the command in my comment right after you start the jellyfin container, so the plugin can patch the file. Monitor the jellyfin container log, you should see the progress like this:

  • Jellyfin start (probably using docker compose up -d)
  • Patch using docker exec right away. I'm using Makefile for the deployment, so after my compose starts, it runs this command right after that
  • Intro Skipper will now try to patch the file

I think that you might try to fix the permission AFTER the plugin's patching. In that case, the plugin should log that it fails to patch because it has no permission.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

hi @jackblk , Thanks for the reply. I actually have a script to do docker run ... && docker exec ...

I did monitor it and it said it modified the index.html. I even confirmed the change is there by exec into the container and inspecting the file myself. The button still won't show though :/

For more context, here's my latest logs (since my last docker container restart):

[2024-05-13 22:58:15.567 -05:00] [INF] [1] Main: Jellyfin version: "10.9.1"
[2024-05-13 22:58:15.585 -05:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_CACHE_DIR, /cache]"]
[2024-05-13 22:58:15.586 -05:00] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll", "--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Operating system: "Debian GNU/Linux 12 (bookworm)"
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Architecture: X64
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: 64-Bit Process: True
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: User Interactive: True
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Processor count: 8
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Program data path: "/config"
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Log directory path: "/config/log"
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Config directory path: "/config/config"
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Cache path: "/cache"
[2024-05-13 22:58:15.587 -05:00] [INF] [1] Main: Web resources path: "/jellyfin/jellyfin-web"
[2024-05-13 22:58:15.588 -05:00] [INF] [1] Main: Application directory: "/jellyfin/"
[2024-05-13 22:58:15.678 -05:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache"
[2024-05-13 22:58:15.749 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2024-05-13 22:58:15.788 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "ConfusedPolarBear.Plugin.IntroSkipper, Version=0.2.0.3, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Intro Skipper_0.2.0.3/ConfusedPolarBear.Plugin.IntroSkipper.dll"
[2024-05-13 22:58:15.789 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.KodiSyncQueue, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Kodi Sync Queue_10.0.0.0/Jellyfin.Plugin.KodiSyncQueue.dll"
[2024-05-13 22:58:15.794 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "LiteDB, Version=5.0.19.0, Culture=neutral, PublicKeyToken=4ee40123013c9f27" from "/config/plugins/Kodi Sync Queue_10.0.0.0/LiteDB.dll"
[2024-05-13 22:58:15.794 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "17.0.0.0" of "LDAP Authentication" 
[2024-05-13 22:58:15.795 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Jellyfin Newsletters_0.6.2.0/SQLitePCL.pretty.dll"
[2024-05-13 22:58:15.796 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Newsletters, Version=0.6.2.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Jellyfin Newsletters_0.6.2.0/Jellyfin.Plugin.Newsletters.dll"
[2024-05-13 22:58:15.797 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Playback Reporting_14.0.0.0/SQLitePCL.pretty.dll"
[2024-05-13 22:58:15.798 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.PlaybackReporting, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Playback Reporting_14.0.0.0/Jellyfin.Plugin.PlaybackReporting.dll"
[2024-05-13 22:58:15.798 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "2.0.1" of "Skin Manager" 
[2024-05-13 22:58:15.801 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Tvdb, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/TheTVDB_11.0.0.0/Jellyfin.Plugin.Tvdb.dll"
[2024-05-13 22:58:15.808 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Tvdb.Sdk, Version=4.7.9.1, Culture=neutral, PublicKeyToken=null" from "/config/plugins/TheTVDB_11.0.0.0/Tvdb.Sdk.dll"
[2024-05-13 22:58:15.816 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Handlebars, Version=2.1.6.0, Culture=neutral, PublicKeyToken=22225d0bf33cd661" from "/config/plugins/Webhook_13.0.0.0/Handlebars.dll"
[2024-05-13 22:58:15.837 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "BouncyCastle.Cryptography, Version=2.0.0.0, Culture=neutral, PublicKeyToken=072edcf4a5328938" from "/config/plugins/Webhook_13.0.0.0/BouncyCastle.Cryptography.dll"
[2024-05-13 22:58:15.839 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Webhook, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Webhook_13.0.0.0/Jellyfin.Plugin.Webhook.dll"
[2024-05-13 22:58:15.851 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MailKit, Version=4.5.0.0, Culture=neutral, PublicKeyToken=4e064fe7c44a8f1b" from "/config/plugins/Webhook_13.0.0.0/MailKit.dll"
[2024-05-13 22:58:15.859 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MimeKit, Version=4.5.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814" from "/config/plugins/Webhook_13.0.0.0/MimeKit.dll"
[2024-05-13 22:58:15.860 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MQTTnet.Extensions.ManagedClient, Version=4.3.3.952, Culture=neutral, PublicKeyToken=fdb7629f2e364a63" from "/config/plugins/Webhook_13.0.0.0/MQTTnet.Extensions.ManagedClient.dll"
[2024-05-13 22:58:15.864 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MQTTnet, Version=4.3.3.952, Culture=neutral, PublicKeyToken=fdb7629f2e364a63" from "/config/plugins/Webhook_13.0.0.0/MQTTnet.dll"
[2024-05-13 22:58:15.906 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-13 22:58:15.906 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2024-05-13 22:58:15.907 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2024-05-13 22:58:15.908 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: ["127.0.0.1", "192.168.0.55", "172.17.0.1"]
[2024-05-13 22:58:15.908 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2024-05-13 22:58:15.908 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filter list: []
[2024-05-13 22:58:19.553 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Skip button already added
[2024-05-13 22:58:19.672 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Intro Skipper" "0.2.0.3"
[2024-05-13 22:58:19.674 -05:00] [INF] [1] Jellyfin.Plugin.KodiSyncQueue.KodiSyncQueuePlugin: KodiSyncQueue is starting...
[2024-05-13 22:58:19.674 -05:00] [INF] [1] Jellyfin.Plugin.KodiSyncQueue.Data.DbRepo: Creating DB Repository...
[2024-05-13 22:58:19.824 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Kodi Sync Queue" "10.0.0.0"
[2024-05-13 22:58:19.848 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Newsletters" "0.6.2.0"
[2024-05-13 22:58:19.849 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Playback Reporting" "14.0.0.0"
[2024-05-13 22:58:19.849 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TheTVDB" "11.0.0.0"
[2024-05-13 22:58:19.851 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Webhook" "13.0.0.0"
[2024-05-13 22:58:19.852 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.9.1.0"
[2024-05-13 22:58:19.852 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.9.1.0"
[2024-05-13 22:58:19.853 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.9.1.0"
[2024-05-13 22:58:19.861 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.9.1.0"
[2024-05-13 22:58:19.862 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.9.1.0"
[2024-05-13 22:58:19.918 -05:00] [WRN] [1] Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository: Using an in-memory repository. Keys will not be persisted to storage.
[2024-05-13 22:58:19.918 -05:00] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
[2024-05-13 22:58:19.924 -05:00] [INF] [1] Main: Kestrel is listening on "127.0.0.1"
[2024-05-13 22:58:19.925 -05:00] [INF] [1] Main: Kestrel is listening on "192.168.0.55"
[2024-05-13 22:58:19.925 -05:00] [INF] [1] Main: Kestrel is listening on "172.17.0.1"
[2024-05-13 22:58:19.931 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.Entrypoint: Running startup enqueue
[2024-05-13 22:58:19.932 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Analysis settings have been changed to: 35% / 10m and a minimum of 15s
[2024-05-13 22:58:20.066 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Collections"
[2024-05-13 22:58:20.077 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Anime"
[2024-05-13 22:58:20.413 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Cartoons"
[2024-05-13 22:58:20.416 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Shows"
[2024-05-13 22:58:20.429 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Movies"
[2024-05-13 22:58:20.432 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: EventMonitorEntryPoint Running
[2024-05-13 22:58:20.439 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Sqlite version: 3.41.2
[2024-05-13 22:58:20.441 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Sqlite compiler options: ATOMIC_INTRINSICS=1,COMPILER=gcc-9.4.0,DEFAULT_AUTOVACUUM,DEFAULT_CACHE_SIZE=-2000,DEFAULT_FILE_FORMAT=4,DEFAULT_FOREIGN_KEYS,DEFAULT_JOURNAL_SIZE_LIMIT=-1,DEFAULT_MMAP_SIZE=0,DEFAULT_PAGE_SIZE=4096,DEFAULT_PCACHE_INITSZ=20,DEFAULT_RECURSIVE_TRIGGERS,DEFAULT_SECTOR_SIZE=4096,DEFAULT_SYNCHRONOUS=2,DEFAULT_WAL_AUTOCHECKPOINT=1000,DEFAULT_WAL_SYNCHRONOUS=2,DEFAULT_WORKER_THREADS=0,ENABLE_COLUMN_METADATA,ENABLE_FTS3,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS4,ENABLE_FTS5,ENABLE_MATH_FUNCTIONS,ENABLE_RTREE,ENABLE_SNAPSHOT,MALLOC_SOFT_LIMIT=1024,MAX_ATTACHED=10,MAX_COLUMN=2000,MAX_COMPOUND_SELECT=500,MAX_DEFAULT_PAGE_SIZE=8192,MAX_EXPR_DEPTH=1000,MAX_FUNCTION_ARG=127,MAX_LENGTH=1000000000,MAX_LIKE_PATTERN_LENGTH=50000,MAX_MMAP_SIZE=0x7fff0000,MAX_PAGE_COUNT=1073741823,MAX_PAGE_SIZE=65536,MAX_SQL_LENGTH=1000000000,MAX_TRIGGER_DEPTH=1000,MAX_VARIABLE_NUMBER=32766,MAX_VDBE_OP=250000000,MAX_WORKER_THREADS=8,MUTEX_PTHREADS,SYSTEM_MALLOC,TEMP_STORE=1,THREADSAFE=1
[2024-05-13 22:58:20.451 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Default journal_mode for "/config/data/playback_reporting.db" is "delete"
[2024-05-13 22:58:20.451 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Initialize PlaybackActivity Repository
[2024-05-13 22:58:20.453 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: PlaybackActivity table schema OK
[2024-05-13 22:58:20.453 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Expected : "datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int"
[2024-05-13 22:58:20.453 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Received : "datecreated:datetime|userid:text|itemid:text|itemtype:text|itemname:text|playbackmethod:text|clientname:text|devicename:text|playduration:int"
[2024-05-13 22:58:20.460 -05:00] [WRN] [1] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: No XML encryptor configured. Key {bf04ebbd-045c-4546-9cf6-5295d1148325} may be persisted to storage in unencrypted form.
[2024-05-13 22:58:20.850 -05:00] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: "/wwwroot". Static files may be unavailable.
[2024-05-13 22:58:20.895 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[2024-05-13 22:58:20.895 -05:00] [INF] [10] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/PlexMedia/Cartoons"
[2024-05-13 22:58:20.896 -05:00] [INF] [1] Jellyfin.Plugin.KodiSyncQueue.ScheduledTasks.RetentionTask: Retention task scheduled
[2024-05-13 22:58:20.897 -05:00] [INF] [16] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/PlexMedia/Shows"
[2024-05-13 22:58:20.898 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: TaskCleanDb Loaded
[2024-05-13 22:58:20.899 -05:00] [INF] [1] Jellyfin.Plugin.PlaybackReporting.TaskRunBackup: TaskRunBackup Loaded
[2024-05-13 22:58:20.903 -05:00] [INF] [11] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/media/PlexMedia/Movies"

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Do you have the button enabled and has the item you are testing it on completed scanning?

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

Button is enabled in the settings, and I have completed scanning (confirmed with auto skip)

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024
[2024-05-13 22:58:15.788 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "ConfusedPolarBear.Plugin.IntroSkipper, Version=0.2.0.3, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Intro Skipper_0.2.0.3/ConfusedPolarBear.Plugin.IntroSkipper.dll"

Well, the plugin loads

[2024-05-13 22:58:19.553 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.Plugin: Skip button already added
[2024-05-13 22:58:19.672 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Intro Skipper" "0.2.0.3"

It's finding the script

[2024-05-13 22:58:19.931 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.Entrypoint: Running startup enqueue
[2024-05-13 22:58:19.932 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Analysis settings have been changed to: 35% / 10m and a minimum of 15s
[2024-05-13 22:58:20.066 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Collections"
[2024-05-13 22:58:20.077 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Anime"
[2024-05-13 22:58:20.413 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Cartoons"
[2024-05-13 22:58:20.416 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Shows"
[2024-05-13 22:58:20.429 -05:00] [INF] [1] ConfusedPolarBear.Plugin.IntroSkipper.QueueManager: Running enqueue of items in library "Movies"

and it's loading your settings

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

Agreed, which is why, like the name of the original repo, I am a confused polar bear 😅

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Usually that means the issue isn't in the plugin, but the UI.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

I see others have it working on 10.9.0 above, wonder if it's because of the new 10.9.1 release (which I'm on)?

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Couldn't say. I'm one of the people that got dropped by the 10.9 update.

The opacity of the button is set to a default of 0, but then the intro / credit segment triggers making it visible to animate it back to hidden. It's possible that if the triggers aren't firing somewhere, the opacity remains at 0. The only way to really confirm that would be to know where the button should appear and see if it's possible to skip by clicking there or setting the opacity back to 1 and seeing if clicking it during an intro or credit section works.

If it isn't a visibility issue, then all that really leaves is the trigger for the button.

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

https://github.com/jumoog/intro-skipper/blob/master/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js#L23C7-L30C49

It's also possible the API changed, since we use an arbitrary path segment count

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

Ahh, I just found this:
image

The value 'Items' is not valid.

from intro-skipper.

jumoog avatar jumoog commented on August 12, 2024

This is what happens when you do not have any values for this episode.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

@jumoog wouldn't the auto skip (when it's enabled) fail to skip though if that's the case?

from intro-skipper.

matt1432 avatar matt1432 commented on August 12, 2024

I'm also unable to see the skip button even though everything seems correct. I also saw that the opacity was set to 0 and tried changing it but it just instantly goes back to 0 after seeing it for a frame.

I'm on 10.9.1

from intro-skipper.

jackblk avatar jackblk commented on August 12, 2024

@Cloud9Developer I had issues when migrating to this new plugin too, might be related to your case.

Everything worked (patching), but the Skip button was not displayed. I checked the API called, the previous info for skipping was not valid anymore (probably incompatible with the new plugin?).

I erased every fingerprints and schedule a new task to generate everything again. It worked for me but it took hours.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

@jackblk yeah, I did that too last night. Erased through the plugin's settings page AND delete the folder in /cache. Started the scan last night, so will check later today when I get home to see if that resolved it. Will let you know once I'm able to confirm

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

We probably shouldn't be moving existing content to the cache if coming from the "original" plugin. Then again, we also can't retroactively add a better method to identify that the data did come from the previous one. This may end up just needing to be a note somewhere.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

I just got home to test if removing all fingerprints via plugin settings page and deleting all /cache/introskipper files, then rescanning worked. Nope, no luck.. Skip button still refuses to show up (but autoskip works when enabled) :/

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

I found the issue!

It's in the inject.js, line 28:
let id = path.split("/")[3];

This fails if you have a context root/path set for jellyfin.

For example, if the path is /myjellyfin/Items/1b0e9d8506ffde97177b336049b1f989/PlaybackInfo

instead of getting '1b0e9d8506ffde97177b336049b1f989', it's getting 'Items', which is breaking the button from showing up.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

#165 should fix it. Tested it on my end, and works

from intro-skipper.

Aydanill avatar Aydanill commented on August 12, 2024

How do you fix it on windows?

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

It would be the same fix, if it's the same issue. The issue is with the way the URL is read.

https://github.com/jumoog/intro-skipper/actions/runs/9106926057/artifacts/1508076458 is the current PR build for it. Replace the dll in the plugin and restart jellyfin.

from intro-skipper.

Cloud9Developer avatar Cloud9Developer commented on August 12, 2024

Would you like me to go and clean it up with better methods later still? Or it's fine as is?

from intro-skipper.

slimshizn avatar slimshizn commented on August 12, 2024

Any chance getting this fix ported back to a previous version? I don't want to upgrade to 10.9.1.

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

You shouldn't need it on the previous version. The issue was caused by the changes in the upgrade

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Since we have all the scripts here, I’ve hidden everything else and locked it to keep that info easy to locate.

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

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

Originally posted by @rlauuzo in #210 (comment)

from intro-skipper.

AbandonedCart avatar AbandonedCart commented on August 12, 2024

Unpinning this since it will be part of the readme.

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.