mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
Added hint for tvdb: imdb: search prefixes. Also fixed the series title overflow issue.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user