From cf61bf72dc574c0e82b1e30914baa1ebcab32198 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 27 Jun 2013 12:47:10 -0400 Subject: [PATCH] made video size richer --- MediaBrowser.Model/Entities/MediaUrl.cs | 8 +++++++- MediaBrowser.Providers/Movies/MovieDbProvider.cs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Model/Entities/MediaUrl.cs b/MediaBrowser.Model/Entities/MediaUrl.cs index b998796502..857e91fec5 100644 --- a/MediaBrowser.Model/Entities/MediaUrl.cs +++ b/MediaBrowser.Model/Entities/MediaUrl.cs @@ -5,7 +5,13 @@ namespace MediaBrowser.Model.Entities { public string Url { get; set; } public string Name { get; set; } - public bool? IsHD { get; set; } + public VideoSize? VideoSize { get; set; } public bool IsDirectLink { get; set; } } + + public enum VideoSize + { + StandardDefinition, + HighDefinition + } } diff --git a/MediaBrowser.Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Providers/Movies/MovieDbProvider.cs index 7a22a4d197..fb35e32aa3 100644 --- a/MediaBrowser.Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Providers/Movies/MovieDbProvider.cs @@ -802,7 +802,7 @@ namespace MediaBrowser.Providers.Movies Url = string.Format("http://www.youtube.com/watch?{0}", i.source), IsDirectLink = false, Name = i.name, - IsHD = string.Equals("hd", i.size, StringComparison.OrdinalIgnoreCase) + VideoSize = string.Equals("hd", i.size, StringComparison.OrdinalIgnoreCase) ? VideoSize.HighDefinition : VideoSize.StandardDefinition }).ToList(); }