mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
parent
df691488a9
commit
2af07d7e0d
2 changed files with 14 additions and 14 deletions
|
@ -132,23 +132,23 @@ namespace NzbDrone.Core.MediaCover
|
||||||
{
|
{
|
||||||
if (e.Status == WebExceptionStatus.ProtocolError)
|
if (e.Status == WebExceptionStatus.ProtocolError)
|
||||||
{
|
{
|
||||||
_logger.Warn(e, "Server returned different code than 200. The poster is probably not available yet.");
|
_logger.Warn(e, string.Format("Couldn't download media cover for {0}, likely the cover doesn't exist for this movie. {1}", movie, e.Message));
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_logger.Warn(e, string.Format("Couldn't download media cover for {0}. {1}", movie, e.Message));
|
|
||||||
if (retried < 3)
|
|
||||||
{
|
|
||||||
retried = +1;
|
|
||||||
_logger.Warn("Retrying for the {0}. time in ten seconds.", retried);
|
|
||||||
System.Threading.Thread.Sleep(10*1000);
|
|
||||||
EnsureCovers(movie, retried);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logger.Warn(e, "Couldn't download media cover even after retrying five times :(.");
|
_logger.Warn(e, string.Format("Couldn't download media cover for {0}. {1}", movie, e.Message));
|
||||||
|
if (retried < 3)
|
||||||
|
{
|
||||||
|
retried = +1;
|
||||||
|
_logger.Warn("Retrying for the {0}. time in ten seconds.", retried);
|
||||||
|
System.Threading.Thread.Sleep(10 * 1000);
|
||||||
|
EnsureCovers(movie, retried);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_logger.Warn(e, "Couldn't download media cover even after retrying five times :(.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ var Collection = PagableCollection.extend({
|
||||||
|
|
||||||
state : {
|
state : {
|
||||||
pageSize : 15,
|
pageSize : 15,
|
||||||
sortKey : 'inCinemas',
|
sortKey : 'title',
|
||||||
order : -1
|
order : -1
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue