made video size richer

This commit is contained in:
Luke Pulverenti 2013-06-27 12:47:10 -04:00
parent 5782d9084d
commit cf61bf72dc
2 changed files with 8 additions and 2 deletions

View file

@ -5,7 +5,13 @@ namespace MediaBrowser.Model.Entities
{ {
public string Url { get; set; } public string Url { get; set; }
public string Name { get; set; } public string Name { get; set; }
public bool? IsHD { get; set; } public VideoSize? VideoSize { get; set; }
public bool IsDirectLink { get; set; } public bool IsDirectLink { get; set; }
} }
public enum VideoSize
{
StandardDefinition,
HighDefinition
}
} }

View file

@ -802,7 +802,7 @@ namespace MediaBrowser.Providers.Movies
Url = string.Format("http://www.youtube.com/watch?{0}", i.source), Url = string.Format("http://www.youtube.com/watch?{0}", i.source),
IsDirectLink = false, IsDirectLink = false,
Name = i.name, Name = i.name,
IsHD = string.Equals("hd", i.size, StringComparison.OrdinalIgnoreCase) VideoSize = string.Equals("hd", i.size, StringComparison.OrdinalIgnoreCase) ? VideoSize.HighDefinition : VideoSize.StandardDefinition
}).ToList(); }).ToList();
} }