Some cleanup
This commit is contained in:
parent
2f5743d2ae
commit
28702e2d10
2 changed files with 3 additions and 0 deletions
|
|
@ -735,6 +735,7 @@ public class SeriesRepository : ISeriesRepository
|
||||||
{
|
{
|
||||||
return await _context.Series
|
return await _context.Series
|
||||||
.Where(s => s.Id == seriesId)
|
.Where(s => s.Id == seriesId)
|
||||||
|
.Include(s => s.ExternalSeriesMetadata)
|
||||||
.Select(series => new PlusSeriesRequestDto()
|
.Select(series => new PlusSeriesRequestDto()
|
||||||
{
|
{
|
||||||
MediaFormat = series.Library.Type.ConvertToPlusMediaFormat(series.Format),
|
MediaFormat = series.Library.Type.ConvertToPlusMediaFormat(series.Format),
|
||||||
|
|
@ -744,6 +745,7 @@ public class SeriesRepository : ISeriesRepository
|
||||||
ScrobblingService.AniListWeblinkWebsite),
|
ScrobblingService.AniListWeblinkWebsite),
|
||||||
MalId = ScrobblingService.ExtractId<long?>(series.Metadata.WebLinks,
|
MalId = ScrobblingService.ExtractId<long?>(series.Metadata.WebLinks,
|
||||||
ScrobblingService.MalWeblinkWebsite),
|
ScrobblingService.MalWeblinkWebsite),
|
||||||
|
CbrId = series.ExternalSeriesMetadata.CbrId,
|
||||||
GoogleBooksId = ScrobblingService.ExtractId<string?>(series.Metadata.WebLinks,
|
GoogleBooksId = ScrobblingService.ExtractId<string?>(series.Metadata.WebLinks,
|
||||||
ScrobblingService.GoogleBooksWeblinkWebsite),
|
ScrobblingService.GoogleBooksWeblinkWebsite),
|
||||||
MangaDexId = ScrobblingService.ExtractId<string?>(series.Metadata.WebLinks,
|
MangaDexId = ScrobblingService.ExtractId<string?>(series.Metadata.WebLinks,
|
||||||
|
|
|
||||||
|
|
@ -632,6 +632,7 @@ public class CoverDbService : ICoverDbService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Refactor this to IHasCoverImage instead of a hard entity type
|
||||||
public async Task SetChapterCoverByUrl(Chapter chapter, string url, bool fromBase64 = true, bool chooseBetterImage = false)
|
public async Task SetChapterCoverByUrl(Chapter chapter, string url, bool fromBase64 = true, bool chooseBetterImage = false)
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(url))
|
if (!string.IsNullOrEmpty(url))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue