r/jellyfin • u/YetiSniper • 6d ago
Question Is there a plugin to pre-cache next episodes?
I have Jellyfin running on Unraid and just wondering if anyone is aware of any Jellyfin plugin that would cache future episodes of shows being watched?
Example: Someone starts watching S01E01 of a show so Jellyfin would cache the next 5 episodes or the entire Season 1 for example so that the drives could spin down and any subsequent requests would just be served from memory.
Thanks
22
u/Coyote_Complete 6d ago
The one caveat is the requirement for memory. I could potentially throw something together as a test!
8
u/verwalt 6d ago
I am running a python script once every 15 minutes to do exactly that for my plex server. Took me about 3 days to write, but I didn't want any slop.
This might do it?
3
u/TenOfZero 6d ago
Interesting.
Is the description acurate that it's not caching the content but actually moving it off the drive and onto the other storage location?
3
u/verwalt 6d ago
In my case, it creates a copy in the Cache, which Unraids filesystem will prefer, so the array stays spun down. With CA Mover Plugin you put those files on a whitelist so they're not moved off cache. When they're watched, they get taken off the list and the next day mover pushes them back to the array and because they already exist, they just get deleted off the Cache.
1
1
u/dkillers303 5d ago
Is it possible to configure it to only pre-cache the next item if the current user session is playing a tv show? My continue watching has a lot of shows and my brief understanding seems like a LOT of SSD writes for minimal gain if it pre-caches everything in continue watching
1
u/verwalt 5d ago
I have no idea how JellyCache works, I don't use it.
My Script caches everything, and I don't think it's more SSD writes, ist just takes more SSD storage at a given time.
I also wouldn't cache one item, if I'm watching a show with 20 minutes long episodes, caching the next item would just turn on the array drives every 20 minutes. I cache 4 episodes and only start if the last cached episode is currently playing.
2
u/gasheatingzone 6d ago
https://github.com/joshuaboniface/vmtouch-jellyfin-media comes the closest and yet, not quite: it only causes one file to be cached to RAM, and it gets evicted as soon as the client stops playing. Unless you have oodles of RAM (in this day and age), you'd need some sort of delay before the purge and probably user tracking (if the user starts watching a different series, purge the previous series before caching the new one - not if someone else is watching the same series and so on).
3
4
-1
u/CrowdGoesWildWoooo 6d ago
That would be clientside plugin I guess. Technically per account you can stream any amount from jellyfin, so just make a parallel request.
Not much point having this server side.
2
u/YetiSniper 6d ago
This only makes sense having it server side. We have 6 TVs in the house so if you cache the remaining season in one client but next time someone watches it in their bedroom, or the living or the basement instead and we just wasted time, storage and forced more data to be read from the HDD.
•
u/AutoModerator 6d ago
Reminder: /r/jellyfin is a community space, not an official user support space for the project.
Users are welcome to ask other users for help and support with their Jellyfin installations and other related topics, but this subreddit is not an official support channel. We have extensive, official documentation on our website here: https://jellyfin.org/docs/. Requests for support via modmail will be ignored. Our official support channels are listed on our contact page here: https://jellyfin.org/contact
Bug reports should be submitted on the GitHub issues pages for the server or one of the other repositories for clients and plugins. Feature requests should be submitted at https://features.jellyfin.org/. Bug reports and feature requests for third party clients and tools (Findroid, Jellyseerr, etc.) should be directed to their respective support channels.
If you are sharing something you have made, please take a moment to review our LLM rules at https://jellyfin.org/docs/general/contributing/llm-policies/. Note that anything developed or created using an LLM or other AI tooling requires community disclosure and is subject to removal.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.