From 3a25608bf9408b092320d3f420461c46387e44ab Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Tue, 9 Nov 2021 08:27:55 -0600 Subject: [PATCH] OPDS Spec issue with Panels (#736) * Fixed a spec issue with entries that contain no items. We send 'Nothing here', but I forgot to send an Id for that feed. * Added a missing migration for backup directories --- API/Controllers/OPDSController.cs | 4 ++++ API/Data/Seed.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/API/Controllers/OPDSController.cs b/API/Controllers/OPDSController.cs index 34f0d3132..e7771c8e1 100644 --- a/API/Controllers/OPDSController.cs +++ b/API/Controllers/OPDSController.cs @@ -202,6 +202,7 @@ namespace API.Controllers { feed.Entries.Add(new FeedEntry() { + Id = "0", Title = "Nothing here", }); } @@ -324,6 +325,7 @@ namespace API.Controllers { feed.Entries.Add(new FeedEntry() { + Id = "0", Title = "Nothing here", }); } @@ -390,6 +392,7 @@ namespace API.Controllers { feed.Entries.Add(new FeedEntry() { + Id = "0", Title = "Nothing here", }); } @@ -429,6 +432,7 @@ namespace API.Controllers { feed.Entries.Add(new FeedEntry() { + Id = "0", Title = "Nothing here", }); } diff --git a/API/Data/Seed.cs b/API/Data/Seed.cs index ae7c9e818..11f1afe86 100644 --- a/API/Data/Seed.cs +++ b/API/Data/Seed.cs @@ -71,6 +71,8 @@ namespace API.Data Configuration.LogLevel + string.Empty; context.ServerSetting.First(s => s.Key == ServerSettingKey.CacheDirectory).Value = DirectoryService.CacheDirectory + string.Empty; + context.ServerSetting.First(s => s.Key == ServerSettingKey.BackupDirectory).Value = + DirectoryService.BackupDirectory + string.Empty; await context.SaveChangesAsync();