Added hint for tvdb: imdb: search prefixes. Also fixed the series title overflow issue.

This commit is contained in:
Taloth Saldono
2014-07-16 23:25:36 +02:00
parent 8f192e635f
commit 981ffb09fc
8 changed files with 51 additions and 6 deletions
@@ -31,6 +31,18 @@ namespace NzbDrone.Core.MetadataSource
{
try
{
if (title.StartsWith("imdb:") || title.StartsWith("imdbid:"))
{
var slug = title.Split(':')[1].TrimStart('t');
if (slug.IsNullOrWhiteSpace() || !slug.All(char.IsDigit) || slug.Length < 7)
{
return new List<Series>();
}
title = "tt" + slug;
}
if (title.StartsWith("tvdb:") || title.StartsWith("tvdbid:") || title.StartsWith("slug:"))
{
try