add subtitle delivery methods to StreamBuilder

This commit is contained in:
Luke Pulverenti
2014-07-18 15:07:28 -04:00
parent 97c5b468a0
commit b4b17d7717
87 changed files with 1887 additions and 504 deletions

View File

@@ -24,5 +24,22 @@ namespace MediaBrowser.Model.Extensions
return list.Contains(value, StringComparer.OrdinalIgnoreCase);
}
public static bool ContainsAnyIgnoreCase(string[] list, string[] values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
foreach (string val in values)
{
if (ContainsIgnoreCase(list, val))
{
return true;
}
}
return false;
}
}
}