[PR #13892] Fix outdated xmltv cache #13760

Open
opened 2026-02-07 07:18:42 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13892
Author: @timminator
Created: 4/10/2025
Status: 🔄 Open

Base: masterHead: fix-outdated-xmltv-cache


📝 Commits (2)

  • 57e7405 Fix outdated xmltv cache
  • c5c78c4 Log 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13892 **Author:** [@timminator](https://github.com/timminator) **Created:** 4/10/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix-outdated-xmltv-cache` --- ### 📝 Commits (2) - [`57e7405`](https://github.com/jellyfin/jellyfin/commit/57e74057615ff41cef8976d213f6a6f715598ff0) Fix outdated xmltv cache - [`c5c78c4`](https://github.com/jellyfin/jellyfin/commit/c5c78c4a3166d36291195fe44f7147173bb56d1a) Log exception when last modified check fails ### 📊 Changes **2 files changed** (+34 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CONTRIBUTORS.md` (+1 -0) 📝 `src/Jellyfin.LiveTv/Listings/XmlTvListingsProvider.cs` (+33 -4) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:18:42 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13760