mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
add subtitle delivery methods to StreamBuilder
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user