Skip to content

Commit

Permalink
fix(backend): return appropriate title when getting manga details
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 2, 2024
1 parent e27d0f0 commit 63a2a3d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,15 @@ public override async Task HandleAsync(MangaDetailsRequest req, CancellationToke

SourceBase.DeconstructId(document.MangaId, out string url, out _);

string title = !string.IsNullOrEmpty(result.Value.Title.English)
? result.Value.Title.English
: result.Value.Title.Romaji;

await SendOkAsync(new MangaDetailsResponse
{
Data = new MangaDetailsModel
{
Title = result.Value.Title.English,
Title = title,
SourceName = source.Name,
SourceUrl = url,
Description = result.Value.DescriptionHtml,
Expand Down

0 comments on commit 63a2a3d

Please sign in to comment.