mirror of https://github.com/Jackett/Jackett
GetImdbID() support null input
This commit is contained in:
parent
45970abbca
commit
a3d4bb516f
|
@ -76,6 +76,8 @@ namespace Jackett.Utils
|
||||||
|
|
||||||
public static int? GetImdbID(string imdbstr)
|
public static int? GetImdbID(string imdbstr)
|
||||||
{
|
{
|
||||||
|
if (imdbstr == null)
|
||||||
|
return null;
|
||||||
var match = ImdbId.Match(imdbstr);
|
var match = ImdbId.Match(imdbstr);
|
||||||
if (!match.Success)
|
if (!match.Success)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue