diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-13 12:04:37 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-12-13 12:04:37 -0500 |
| commit | afabbfa22beba80d448dc435a2008ec45e805dd6 (patch) | |
| tree | eb5fbcffd9570681bdfac1a66218302f3f4cacf1 /MediaBrowser.Model/Dlna/ContainerProfile.cs | |
| parent | 81d685b882de369cd42ed8f3dbf78fc6bc0f36df (diff) | |
add ios dts workaround
Diffstat (limited to 'MediaBrowser.Model/Dlna/ContainerProfile.cs')
| -rw-r--r-- | MediaBrowser.Model/Dlna/ContainerProfile.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Dlna/ContainerProfile.cs b/MediaBrowser.Model/Dlna/ContainerProfile.cs index d9b75dfc2..35d7ada6b 100644 --- a/MediaBrowser.Model/Dlna/ContainerProfile.cs +++ b/MediaBrowser.Model/Dlna/ContainerProfile.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Xml.Serialization; using MediaBrowser.Model.Dlna; +using MediaBrowser.Model.Extensions; namespace MediaBrowser.Model.Dlna { @@ -27,5 +28,12 @@ namespace MediaBrowser.Model.Dlna } return list; } + + public bool ContainsContainer(string container) + { + List<string> containers = GetContainers(); + + return containers.Count == 0 || ListHelper.ContainsIgnoreCase(containers, container ?? string.Empty); + } } } |
