mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Catching predb.me errors hopefully.
This commit is contained in:
parent
d33ec334f3
commit
63d7596e98
1 changed files with 18 additions and 9 deletions
|
@ -170,6 +170,8 @@ namespace NzbDrone.Core.MetadataSource.PreDB
|
|||
}
|
||||
|
||||
public bool HasReleases(Movie movie)
|
||||
{
|
||||
try
|
||||
{
|
||||
var results = GetResults("movies", movie.Title);
|
||||
|
||||
|
@ -190,5 +192,12 @@ namespace NzbDrone.Core.MetadataSource.PreDB
|
|||
|
||||
return false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Warn(ex, "Error while looking on predb.me.");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue