made video size richer

pull/702/head
Luke Pulverenti 12 years ago
parent 5782d9084d
commit cf61bf72dc

@ -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
}
}

@ -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();
}

Loading…
Cancel
Save