1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

Added a bunch of extra MediaInfo formats.

This commit is contained in:
Taloth Saldono
2017-07-31 09:42:53 +02:00
parent 54d5ad4b71
commit ac837c8f74
7 changed files with 125 additions and 7 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ namespace NzbDrone.Common.Http
}
if (values.Length > 1)
{
throw new ApplicationException(string.Format("Expected {0} to occur only once.", key));
throw new ApplicationException($"Expected {key} to occur only once, but was {values.Join("|")}.");
}
return values[0];
@@ -54,7 +54,7 @@ namespace NzbDrone.Common.Http
return converter(value);
}
protected void SetSingleValue(string key, string value)
{
{
if (value == null)
{
Remove(key);
@@ -175,4 +175,4 @@ namespace NzbDrone.Common.Http
.ToList();
}
}
}
}