mirror of
https://github.com/Lidarr/Lidarr
synced 2026-04-22 04:31:40 +02:00
Fixed metadata images containing html content
(cherry picked from commit 87a64cdacbb0945c89b878d02a7eb2ac28427026)
This commit is contained in:
parent
526c81c548
commit
1da1020a83
2 changed files with 8 additions and 0 deletions
|
|
@ -492,6 +492,10 @@ private void DownloadImage(Artist artist, ImageFileResult image)
|
|||
_mediaFileAttributeService.SetFilePermissions(fullPath);
|
||||
}
|
||||
}
|
||||
catch (HttpException ex)
|
||||
{
|
||||
_logger.Warn(ex, "Couldn't download image {0} for {1}. {2}", image.Url, artist, ex.Message);
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
_logger.Warn(ex, "Couldn't download image {0} for {1}. {2}", image.Url, artist, ex.Message);
|
||||
|
|
|
|||
|
|
@ -220,6 +220,10 @@ public bool EnsureAlbumCovers(Album album)
|
|||
updated = true;
|
||||
}
|
||||
}
|
||||
catch (HttpException e)
|
||||
{
|
||||
_logger.Warn("Couldn't download media cover for {0}. {1}", album, e.Message);
|
||||
}
|
||||
catch (WebException e)
|
||||
{
|
||||
_logger.Warn("Couldn't download media cover for {0}. {1}", album, e.Message);
|
||||
|
|
|
|||
Loading…
Reference in a new issue