fix: refresh logo cache and improve compact matching#6
Open
Serph91P wants to merge 1 commit into
Open
Conversation
Make logo match and index cache entries scoped to the configured GitHub repository so switching forks or changing fork contents does not reuse stale matches. Improve compact filename fallback matching without channel-specific aliases. Exact basename matches still win first, then compact fallback normalizes non-semantic variant tokens like custom and quality suffixes after the exact path fails. Candidate specificity is evaluated before folder preference so UHD and other quality-bearing names do not get stolen by less specific candidates. Keep release packaging limited to runtime files.
4b11f51 to
ee53748
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github_repo, then bump the cache structure version so stale fork-specific hits and misses are rebuilt.custom,hd,fhd,uhd,sd,4k, and8k.Verification
php -l Plugin.phpvia the running m3u-editor PHP runtime.Bundesliga 1 HD->sky-sport/hd/sky-sport-bundesliga-1-hd-de.pngBundesliga UHD->sky-sport/hd/sky-sport-bundesliga-uhd-de.pngBundesliga Replay 1->bundes-liga-replay-1-de.pngSky Cinema Action HD->sky-cinema/hd/sky-cinema-action-hd-de.pngSky Cinema Action Custom HD->custom/hd/sky-cinema-action-custom-hd-de.pngSport1 HD->hd/sport1-hd-de.pngDas Erste HD->hd/das-erste-hd-de.pngbash scripts/package-plugin.shunzip -l dist/tv-logos.zipconfirmed onlyplugin.jsonandPlugin.phpare packaged.php scripts/validate-plugin.phpvia the running m3u-editor PHP runtime.grep -rP "[\x{2013}\x{2014}]" --include='*.php' --include='*.json' --include='*.md' --include='*.sh' .returned clean.grep -n "bundesliga" Plugin.phpreturned clean.git diff --checkreturned clean.