Skip to content

7 jellyfin unable to convert any images to local#8

Merged
daniel-widrick merged 3 commits intomainfrom
7-jellyfin-unable-to-convert-any-images-to-local
Mar 3, 2026
Merged

7 jellyfin unable to convert any images to local#8
daniel-widrick merged 3 commits intomainfrom
7-jellyfin-unable-to-convert-any-images-to-local

Conversation

@daniel-widrick
Copy link
Owner

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Addresses Jellyfin failures to fetch/convert program artwork by rewriting defunct zap2it image hosts and allowlisting the replacement host in the image proxy.

Changes:

  • Add scrape progress logging for each 6-hour grid fetch.
  • Rewrite zap2it.tmsimg.com program image URLs to tmsimg.com during scrape output generation.
  • Allow tmsimg.com in the image proxy allowlist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1067 to +1081
fixed := 0
for i := range programs {
if programs[i].IconSrc != "" && strings.Contains(programs[i].IconSrc, "zap2it.tmsimg.com") {
programs[i].IconSrc = strings.Replace(programs[i].IconSrc, "zap2it.tmsimg.com", "tmsimg.com", 1)
fixed++
}
for j := range programs[i].Images {
if strings.Contains(programs[i].Images[j].URL, "zap2it.tmsimg.com") {
programs[i].Images[j].URL = strings.Replace(programs[i].Images[j].URL, "zap2it.tmsimg.com", "tmsimg.com", 1)
}
}
}
if fixed > 0 {
log.Printf("Fixed %d zap2it image URLs to use tmsimg.com", fixed)
}
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Fixed %d zap2it image URLs" log only increments for IconSrc rewrites, but Images[*].URL rewrites are not counted. This makes the log misleading; either include image rewrites in the counter or adjust the message to reflect what is being counted.

Copilot uses AI. Check for mistakes.
@daniel-widrick daniel-widrick merged commit dc7da8a into main Mar 3, 2026
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.

Jellyfin: Unable to convert any images to local

2 participants