mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-06 15:58:29 +01:00
update plugin pages
This commit is contained in:
@@ -350,16 +350,16 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
localPath.IndexOf("dashboard/", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
httpRes.StatusCode = 200;
|
||||
httpRes.ContentType = "text/plain";
|
||||
httpRes.ContentType = "text/html";
|
||||
var newUrl = urlString.Replace("mediabrowser", "emby", StringComparison.OrdinalIgnoreCase)
|
||||
.Replace("/dashboard/", "/web/", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
httpRes.Write("Please update your Emby bookmark to " + newUrl);
|
||||
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();
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
|
||||
if (string.Equals(localPath, "/emby/", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
httpRes.RedirectToUrl(DefaultRedirectPath);
|
||||
@@ -396,7 +396,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
httpRes.RedirectToUrl("web/pin.html");
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(GlobalResponse))
|
||||
{
|
||||
httpRes.StatusCode = 503;
|
||||
|
||||
@@ -348,7 +348,12 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
"Genres",
|
||||
"ParentId",
|
||||
"Audio",
|
||||
"ExternalServiceId"
|
||||
"ExternalServiceId",
|
||||
"IsInMixedFolder",
|
||||
"DateLastSaved",
|
||||
"LockedFields",
|
||||
"Studios",
|
||||
"Tags"
|
||||
};
|
||||
|
||||
private readonly string[] _mediaStreamSaveColumns =
|
||||
@@ -1079,6 +1084,31 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
}
|
||||
}
|
||||
|
||||
if (!reader.IsDBNull(44))
|
||||
{
|
||||
item.IsInMixedFolder = reader.GetBoolean(44);
|
||||
}
|
||||
|
||||
if (!reader.IsDBNull(45))
|
||||
{
|
||||
item.DateLastSaved = reader.GetDateTime(45).ToUniversalTime();
|
||||
}
|
||||
|
||||
if (!reader.IsDBNull(46))
|
||||
{
|
||||
item.LockedFields = reader.GetString(46).Split('|').Where(i => !string.IsNullOrWhiteSpace(i)).Select(i => (MetadataFields)Enum.Parse(typeof(MetadataFields), i, true)).ToList();
|
||||
}
|
||||
|
||||
if (!reader.IsDBNull(47))
|
||||
{
|
||||
item.Studios = reader.GetString(47).Split('|').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
|
||||
}
|
||||
|
||||
if (!reader.IsDBNull(48))
|
||||
{
|
||||
item.Tags = reader.GetString(48).Split('|').Where(i => !string.IsNullOrWhiteSpace(i)).ToList();
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -2013,6 +2043,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||
typeof(MusicGenre),
|
||||
typeof(MusicVideo),
|
||||
typeof(Movie),
|
||||
typeof(Trailer),
|
||||
typeof(BoxSet),
|
||||
typeof(Episode),
|
||||
typeof(ChannelVideoItem),
|
||||
|
||||
Reference in New Issue
Block a user