mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
made video size richer
This commit is contained in:
parent
5782d9084d
commit
cf61bf72dc
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue