diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-01 15:49:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-04-01 15:49:36 -0400 |
| commit | 372d40598d37a29ffa9de8627114fa12c477fc83 (patch) | |
| tree | d5275e3e774f4b9c6e43b00f82ea32d2fb11e92e /Emby.Server.Implementations/Sorting | |
| parent | 165a209bdf1c3f95bf01cda8635376616397d321 (diff) | |
remove qsv hevc decoding for now
Diffstat (limited to 'Emby.Server.Implementations/Sorting')
| -rw-r--r-- | Emby.Server.Implementations/Sorting/MetascoreComparer.cs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Emby.Server.Implementations/Sorting/MetascoreComparer.cs b/Emby.Server.Implementations/Sorting/MetascoreComparer.cs deleted file mode 100644 index 9759e0228..000000000 --- a/Emby.Server.Implementations/Sorting/MetascoreComparer.cs +++ /dev/null @@ -1,41 +0,0 @@ -using MediaBrowser.Controller.Entities; -using MediaBrowser.Controller.Sorting; -using MediaBrowser.Model.Querying; - -namespace Emby.Server.Implementations.Sorting -{ - public class MetascoreComparer : IBaseItemComparer - { - /// <summary> - /// Compares the specified x. - /// </summary> - /// <param name="x">The x.</param> - /// <param name="y">The y.</param> - /// <returns>System.Int32.</returns> - public int Compare(BaseItem x, BaseItem y) - { - return GetValue(x).CompareTo(GetValue(y)); - } - - private float GetValue(BaseItem x) - { - var hasMetascore = x as IHasMetascore; - - if (hasMetascore != null) - { - return hasMetascore.Metascore ?? 0; - } - - return 0; - } - - /// <summary> - /// Gets the name. - /// </summary> - /// <value>The name.</value> - public string Name - { - get { return ItemSortBy.Metascore; } - } - } -} |
