Fixed metadata images containing html content

(cherry picked from commit 87a64cdacbb0945c89b878d02a7eb2ac28427026)
This commit is contained in:
Taloth Saldono 2020-06-25 23:40:37 +02:00 committed by Bogdan
parent 526c81c548
commit 1da1020a83
2 changed files with 8 additions and 0 deletions

View File

@ -492,6 +492,10 @@ namespace NzbDrone.Core.Extras.Metadata
_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);

View File

@ -220,6 +220,10 @@ namespace NzbDrone.Core.MediaCover
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);