mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-29 19:12:35 -04:00
Progress Overhaul + Profile Page and a LOT more! (#4262)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
@@ -18,6 +18,7 @@ using Kavita.Common.EnvironmentInfo;
|
||||
using MarkdownDeep;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace API.Services.Tasks;
|
||||
@@ -200,8 +201,8 @@ public class ThemeService : IThemeService
|
||||
private static async Task<IList<GitHubContent>> GetDirectoryContent(string path)
|
||||
{
|
||||
var json = await $"{GithubBaseUrl}/repos/Kareadita/Themes/contents/{path}"
|
||||
.WithHeader("Accept", "application/vnd.github+json")
|
||||
.WithHeader("User-Agent", "Kavita")
|
||||
.WithHeader(HeaderNames.Accept, "application/vnd.github+json")
|
||||
.WithHeader(HeaderNames.UserAgent, "Kavita")
|
||||
.GetStringAsync();
|
||||
|
||||
return string.IsNullOrEmpty(json) ? [] : JsonConvert.DeserializeObject<List<GitHubContent>>(json);
|
||||
|
||||
Reference in New Issue
Block a user