lolotux 4 Posted 55 minutes ago Posted 55 minutes ago Hi, I found a workaround to change when the “Next Episode / Up Next” prompt appears in Emby Web. Tested on Emby 4.9.5.0. File: /opt/emby-server/system/dashboard-ui/videoosd/videoosd.js Original logic uses: 30 / 35 / 40 seconds before the end, depending on episode duration. I changed it to trigger at 96% of playback instead, so the prompt appears when about 4% of the episode remains. Patch idea: 1. Backup the file. 2. Replace the fallback timing logic: runtimeTicks-1e3*(fiftyMinuteTicks<=runtimeTicks?40:fortyMinuteTicks<=runtimeTicks?35:30)*1e4 with: runtimeTicks*.96 3. Optional but important: Emby may use CreditsStart markers when available, so I also forced creditsInfo to 0 in the UpNext calculation to always use the percentage-based trigger. 4. Restart Emby. 5. Clear/reload the browser cache for: /web/videoosd/videoosd.js?v=4.9.5.0 In Chromium/Chrome DevTools console: fetch('/web/videoosd/videoosd.js?v=4.9.5.0', {cache:'reload'}) Important notes: - This is not an official setting. - It will probably be overwritten by Emby updates. - Backup before modifying. - A proper UI setting would still be much better. Result: The UpNext prompt now appears around 96% of the episode instead of the hardcoded 30/35/40 seconds.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now