The Free Software Media System - Server Backend & API
update auto-organize
Luke Pulverenti6c2715940653
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex a837ae7f01..f7439e9709 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -1155,14 +1155,21 @@ namespace MediaBrowser.Controller.EntitiesDateTime? datePlayed,bool resetPosition){- var itemsResult = await GetItems(new InternalItemsQuery+ var query = new InternalItemsQuery{User = user,Recursive = true,IsFolder = false,- IsMissing = false+ IsUnaired = false- }).ConfigureAwait(false);+ };++ if (!user.Configuration.DisplayMissingEpisodes)+ {+ query.IsMissing = false;+ }++ var itemsResult = await GetItems(query).ConfigureAwait(false);// Sweep through recursively and update statusvar tasks = itemsResult.Items.Select(c => c.MarkPlayed(user, datePlayed, resetPosition));diff --git a/MediaBrowser.Providers/TV/TvdbSeriesProvider.cs b/MediaBrowser.Providers/TV/TvdbSeriesProvider.csindex ccf8800cf4..22e3c59509 100644--- a/MediaBrowser.Providers/TV/TvdbSeriesProvider.cs+++ b/MediaBrowser.Providers/TV/TvdbSeriesProvider.cs@@ -258,7 +258,7 @@ namespace MediaBrowser.Providers.TVif (seriesProviderIds.TryGetValue(MetadataProviders.Tvdb.ToString(), out id)){// This check should ideally never be necessary but we're seeing some cases of this and haven't tracked them down yet.- if (string.IsNullOrWhiteSpace(id))+ if (!string.IsNullOrWhiteSpace(id)){return true;}diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.csindex c7ba9cbf0f..5c36399e78 100644--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs@@ -335,6 +335,7 @@ namespace MediaBrowser.WebDashboard.ApiCopyFile(Path.Combine(creator.DashboardUIPath, "bower_components", "hammerjs", "hammer.min.js"), Path.Combine(path, "bower_components", "hammerjs", "hammer.min.js"));CopyFile(Path.Combine(creator.DashboardUIPath, "bower_components", "Sortable", "Sortable.min.js"), Path.Combine(path, "bower_components", "Sortable", "Sortable.min.js"));+ CopyFile(Path.Combine(creator.DashboardUIPath, "bower_components", "native-promise-only", "lib", "npo.src.js"), Path.Combine(path, "bower_components", "native-promise-only", "lib", "npo.src.js"));}MinifyCssDirectory(Path.Combine(path, "css"));diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.csindex ca580d19f3..1efcadfbde 100644--- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs+++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs@@ -379,6 +379,7 @@ namespace MediaBrowser.WebDashboard.Api//sb.Append("<meta http-equiv=\"Content-Security-Policy\" content=\"default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'\">");}+ sb.Append("<link rel=\"manifest\" href=\"manifest.json\">");sb.Append("<meta http-equiv=\"X-UA-Compatibility\" content=\"IE=Edge\">");sb.Append("<meta name=\"format-detection\" content=\"telephone=no\">");sb.Append("<meta name=\"msapplication-tap-highlight\" content=\"no\">");diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csprojindex 228a4fafa2..0c89e8ed7e 100644--- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj+++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj@@ -128,6 +128,9 @@<Content Include="dashboard-ui\bower_components\jstree\dist\jstree.min.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\bower_components\native-promise-only\lib\npo.src.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\bower_components\requirejs\require.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -179,6 +182,9 @@<Content Include="dashboard-ui\components\directorybrowser\directorybrowser.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <Content Include="dashboard-ui\components\imagestore.js">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </Content><Content Include="dashboard-ui\components\itemidentifier\itemidentifier.js"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>@@ -2709,6 +2715,9 @@<Content Include="dashboard-ui\strings\javascript\zh-TW.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></Content>+ <None Include="dashboard-ui\manifest.json">+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>+ </None><None Include="dashboard-ui\strings\html\zh-HK.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>