mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
GetImdbID() support null input
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user