diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-18 17:23:03 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-18 17:23:03 -0400 |
| commit | cf4adb84383d937db27c2052721417863908e2fd (patch) | |
| tree | 6fabc3834b8f377de1e060ef39d61dcc6a6619fd /MediaBrowser.Model/Dlna/DeviceProfile.cs | |
| parent | 3ccecd3ca3a1640f15ffae70914a8ad0f5a1cb99 (diff) | |
dlna fixes
Diffstat (limited to 'MediaBrowser.Model/Dlna/DeviceProfile.cs')
| -rw-r--r-- | MediaBrowser.Model/Dlna/DeviceProfile.cs | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/MediaBrowser.Model/Dlna/DeviceProfile.cs b/MediaBrowser.Model/Dlna/DeviceProfile.cs index 42ba5840cf..a3e217ef3a 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; - } } } |
