Fixes for Livestreams
This commit is contained in:
@@ -120,9 +120,10 @@ public class ContentExpirationService : IContentExpirationService
|
||||
|
||||
if (mediaComposition?.HasChapters != true)
|
||||
{
|
||||
// If we can't fetch the content, consider it expired
|
||||
_logger.LogWarning("Could not fetch media composition for URN: {Urn}, treating as expired", urn);
|
||||
return true;
|
||||
// Don't treat API failures as expired - the content may still be available
|
||||
// and a transient error (network issue, 403, API outage) shouldn't delete library items
|
||||
_logger.LogWarning("Could not fetch media composition for URN: {Urn}, skipping (not treating as expired)", urn);
|
||||
return false;
|
||||
}
|
||||
|
||||
var chapter = mediaComposition.ChapterList[0];
|
||||
|
||||
Reference in New Issue
Block a user