mirror of
https://github.com/Jackett/Jackett
synced 2025-02-25 07:32:38 +00:00
ParseUtil: add GetFullImdbID()
This commit is contained in:
parent
27df6fbe02
commit
91a619e0f6
1 changed files with 9 additions and 0 deletions
|
@ -82,5 +82,14 @@ namespace Jackett.Utils
|
|||
|
||||
return int.Parse(match.Groups[1].Value, NumberStyles.Any, CultureInfo.InvariantCulture);
|
||||
}
|
||||
|
||||
public static string GetFullImdbID(string imdbstr)
|
||||
{
|
||||
var imdbid = GetImdbID(imdbstr);
|
||||
if (imdbid == null)
|
||||
return null;
|
||||
|
||||
return "tt" + ((int)imdbid).ToString("D7");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue