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

Add support for downloading artwork info for programme icon. #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

azlm8t
Copy link

@azlm8t azlm8t commented Oct 12, 2017

Although programmes can have an episodeImage, this is often
missing from the SD data. For my channels, no programmes at all
have an episodeImage.

So we now fetch image information for every programme
we are downloading and use that to generate the programme icon.

We download the URL information only and not the actual artwork.

Since many programmes and show information are already cached,
the database will need to be cleared if you want the artwork
immediately for all programmes, otherwise it will be downloaded
the next time the show is updated since we only download images
for changed programmes.

The downloading is done on a "best effort" basis, so we don't keep
trying to re-download images for any shows where artwork is missing.
The overhead of downloading artwork seems minimal after the initial grab.

Where there is multiple artwork, we try and pick good quality episode artwork
(based on image width), but fall-back to show artwork otherwise.
For daytime shows sometimes there is no decent artwork for the show either
so in that case we pick up "iconic" artwork from the episode, which appears
to be just a screenshot.

I've tried to keep the code consistent with the existing logic, but error 5001
(queued) is ignored since I've never seen a case where a re-request is
successful.

Although programmes can have an episodeImage, this is often
missing. So we now fetch image information for every programme
we are downloading and use that to generate the programme icon.

Since many programmes and show information are already cached,
the database will need to be cleared if you want the artwork
immediately for all programmes, otherwise it will be downloaded
the next time the show is updated.
Base automatically changed from master to main February 3, 2021 02:58
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.

1 participant