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

Refresh live TV channel image when remapped (issue #7834) #7843

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

danielearwicker
Copy link

Changes

In GetChannelAsync the if (!item.HasImage(ImageType.Primary)) check means once a channel has an image, it is never updated. So it continues to have the wrong image even after it has been manually remapped to the correct channel by the user.

To know when the user has done this it seems like we need to store the URL that was fetched to save the local cached image for the channel. If the URL from the EPG is different from this, we should clear the primary image so it is refetched.

That's almost the whole change, except that probably to avoid doing a lot of unnecessary work the existing code in UpdateImagesAsync never updates images for any live TV shows or channels. I've left that as it is except now it only applies to shows (of which there are huge numbers) but not channels (of which there are relatively few).

Issues

Fixes #7834

@jellyfin-bot jellyfin-bot added the merge conflict Merge conflicts should be resolved before a merge label Jun 29, 2022
@jurgenhaas
Copy link

Is there a way I could patch my running Jellyfin installation to give this a try?

@Shadowghost
Copy link
Contributor

@danielearwicker it would be appreciated if you can resolve the conflicts.

@Bond-009 Bond-009 removed the merge conflict Merge conflicts should be resolved before a merge label Dec 18, 2023
@barronpm barronpm requested a review from Bond-009 January 9, 2024 22:03
@jellyfin-bot
Copy link
Contributor

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

@jellyfin-bot jellyfin-bot added the merge conflict Merge conflicts should be resolved before a merge label Jan 12, 2024
Bond-009 added a commit to Bond-009/jellyfin that referenced this pull request Mar 15, 2024
Bond-009 added a commit to Bond-009/jellyfin that referenced this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge conflict Merge conflicts should be resolved before a merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue]: In Live TV, refreshing guide data doesn't update channel images after remapping them manually
7 participants