mirror of https://github.com/lidarr/Lidarr
Fixed metadata images containing html content
(cherry picked from commit 87a64cdacbb0945c89b878d02a7eb2ac28427026)
This commit is contained in:
parent
526c81c548
commit
1da1020a83
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue