mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 08:23:04 +00:00
made video size richer
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user