mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update take the tour
This commit is contained in:
parent
20c72e0ce9
commit
ca994965c2
@ -354,10 +354,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||||||
var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase)
|
var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase)
|
||||||
.Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase);
|
.Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase);
|
||||||
|
|
||||||
httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");
|
if (!string.Equals(newUrl, urlString, StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
httpRes.Write("<!doctype html><html><head><title>Emby</title></head><body>Please update your Emby bookmark to <a href=\"" + newUrl + "\">" + newUrl + "</a></body></html>");
|
||||||
|
|
||||||
httpRes.Close();
|
httpRes.Close();
|
||||||
return Task.FromResult(true);
|
return Task.FromResult(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user