aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Dlna/DeviceProfile.cs39
-rw-r--r--MediaBrowser.Model/Querying/ItemSortBy.cs1
2 files changed, 1 insertions, 39 deletions
diff --git a/MediaBrowser.Model/Dlna/DeviceProfile.cs b/MediaBrowser.Model/Dlna/DeviceProfile.cs
index 42ba5840c..a3e217ef3 100644
--- a/MediaBrowser.Model/Dlna/DeviceProfile.cs
+++ b/MediaBrowser.Model/Dlna/DeviceProfile.cs
@@ -318,44 +318,5 @@ namespace MediaBrowser.Model.Dlna
}
return null;
}
-
- public ResponseProfile GetPhotoMediaProfile(string container, int? width, int? height)
- {
- container = (container ?? string.Empty).TrimStart('.');
-
- foreach (var i in ResponseProfiles)
- {
- if (i.Type != DlnaProfileType.Photo)
- {
- continue;
- }
-
- List<string> containers = i.GetContainers().ToList();
- if (containers.Count > 0 && !containers.Contains(container, StringComparer.OrdinalIgnoreCase))
- {
- continue;
- }
-
- ConditionProcessor conditionProcessor = new ConditionProcessor();
-
- var anyOff = false;
- foreach (ProfileCondition c in i.Conditions)
- {
- if (!conditionProcessor.IsImageConditionSatisfied(c, width, height))
- {
- anyOff = true;
- break;
- }
- }
-
- if (anyOff)
- {
- continue;
- }
-
- return i;
- }
- return null;
- }
}
}
diff --git a/MediaBrowser.Model/Querying/ItemSortBy.cs b/MediaBrowser.Model/Querying/ItemSortBy.cs
index c91e0bafa..14b80853a 100644
--- a/MediaBrowser.Model/Querying/ItemSortBy.cs
+++ b/MediaBrowser.Model/Querying/ItemSortBy.cs
@@ -82,5 +82,6 @@ namespace MediaBrowser.Model.Querying
public const string Studio = "Studio";
public const string Players = "Players";
public const string GameSystem = "GameSystem";
+ public const string IsFavoriteOrLiked = "IsFavoriteOrLiked";
}
}