Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podcasts: Pre-caching image data - do not continually try again when there is no image to be had #671

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

mw9
Copy link
Contributor

@mw9 mw9 commented Oct 3, 2021

This proposal is a follow up to #668.

Some podcasts do not provide image data in their feeds. This is quite acceptable.

In this case we provide a default image, but only for 24 hours. Thereafter we just fetch the feed again, and re-try. That is unnecessary. If there's no image, well, there's just no image. There is no point in continually trying again.

This proposed change has us adopt the same circa 90 day policy to the default image that is applied to "real" images.

It is not mandatory that a podcast feed provide an image, and it is not
helpful to attempt a refresh every day just because one is absent. This
is not an error condition.

So treat the default image just as if it were a 'real' image, caching
for around 90 days.

The image data will be updated when the user browses into the feed, so
any future change will be picked up within a reasonable time period.
@mherger mherger merged commit a4b1335 into LMS-Community:public/8.3 Oct 4, 2021
@mherger
Copy link
Contributor

mherger commented Oct 4, 2021

Thanks!

@mw9 mw9 deleted the feature/pcast_precaching branch October 4, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants