1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

Added trailer links to the discovery page.

This commit is contained in:
Leonardo Galli
2017-04-28 14:14:02 +02:00
parent b1025e7229
commit 5a0f02007f
3 changed files with 17 additions and 0 deletions
@@ -34,6 +34,8 @@ namespace NzbDrone.Core.MetadataSource.SkyHook.Resource
public int vote_count { get; set; }
public bool video { get; set; }
public float vote_average { get; set; }
public string trailer_key { get; set; }
public string trailer_site { get; set; }
}
@@ -591,6 +591,15 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
_logger.Debug(result);
}
if (result.trailer_key.IsNotNullOrWhiteSpace() && result.trailer_site.IsNotNullOrWhiteSpace())
{
if (result.trailer_site == "youtube")
{
imdbMovie.YouTubeTrailerId = result.trailer_key;
}
}
return imdbMovie;
}
catch (Exception e)