Fix baseurl (attempt #2)

pull/2045/head
Bond_009 5 years ago
parent 51cdc6ea16
commit 602ebe3fdb

@ -300,12 +300,14 @@ namespace MediaBrowser.Api
string baseUrl = ApiEntryPoint.Instance.ConfigurationManager.Configuration.BaseUrl; string baseUrl = ApiEntryPoint.Instance.ConfigurationManager.Configuration.BaseUrl;
// backwards compatibility // backwards compatibility
if (baseUrl.Length == 0 if (baseUrl.Length == 0)
&& (string.Equals(first, "mediabrowser", StringComparison.OrdinalIgnoreCase) {
|| string.Equals(first, "emby", StringComparison.OrdinalIgnoreCase))) if (string.Equals(first, "mediabrowser", StringComparison.OrdinalIgnoreCase)
|| string.Equals(first, "emby", StringComparison.OrdinalIgnoreCase))
{ {
index++; index++;
} }
}
else if (string.Equals(first, baseUrl.Remove(0, 1))) else if (string.Equals(first, baseUrl.Remove(0, 1)))
{ {
index++; index++;

Loading…
Cancel
Save