GetImdbID() support null input

This commit is contained in:
kaso17 2017-01-31 18:44:39 +01:00
parent 45970abbca
commit a3d4bb516f
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ namespace Jackett.Utils
public static int? GetImdbID(string imdbstr)
{
if (imdbstr == null)
return null;
var match = ImdbId.Match(imdbstr);
if (!match.Success)
return null;