mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4225] [MERGED] Check response status code before saving images #9958
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/4225
Author: @Spacetech
Created: 9/28/2020
Status: ✅ Merged
Merged: 10/5/2020
Merged by: @Bond-009
Base:
master← Head:save_image_check📝 Commits (4)
3ca9b13Check response status code before saving images722ec43remove status code from exception messagee9911b7Use EnsureSuccessStatusCode25d8d85Back to HttpException📊 Changes
1 file changed (+8 additions, -0 deletions)
View changed files
📝
MediaBrowser.Providers/Manager/ProviderManager.cs(+8 -0)📄 Description
At some point jellyfin downloaded a "poster" that is actually an xml file and ran into trouble getting the image dimensions:
The contents of
poster.xmlis:It downloaded an invalid season poster. That response is the default tvdb response for invalid images. For example going to https://www.thetvdb.com/banners/seasons/abc123-1.jpg returns the same thing.
The root cause might be related to how
TvdbSeasonImageProviderworks because maybe it shouldn't be telling jellyfin to get an image for that url. Anyway I think this status code check should still be added.The result makes it print this nice warning instead of an error:
Changes
Issues
None that I saw
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.