mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13892] Fix outdated xmltv cache #13760
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/13892
Author: @timminator
Created: 4/10/2025
Status: 🔄 Open
Base:
master← Head:fix-outdated-xmltv-cache📝 Commits (2)
57e7405Fix outdated xmltv cachec5c78c4Log exception when last modified check fails📊 Changes
2 files changed (+34 additions, -4 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
src/Jellyfin.LiveTv/Listings/XmlTvListingsProvider.cs(+33 -4)📄 Description
If a xmltv program is added and updated afterwards changes are not showing up in Jellyfin. This is due to the parameter _maxCacheAge. Even if the guide data is manually refreshed the logic returns immediately with the old cache file instead of using the new one if the cache is not older than _maxCacheAge.
I updated this logic to compare thelastmodified time of the cache and the potentially new xml file, if the cache is not older than _maxCacheAge.
This ensures that changes are showing up in Jellyfin properly.
Changes:
Add Last-Modified check to XMLTV cache logic if cache is not older than 1 hour.
Fixes #6103
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.