Added some notes
This commit is contained in:
parent
3fe5933358
commit
85b3187f3f
2 changed files with 2 additions and 0 deletions
|
|
@ -752,6 +752,7 @@ public class ExternalMetadataService : IExternalMetadataService
|
||||||
{
|
{
|
||||||
Name = w.Name,
|
Name = w.Name,
|
||||||
AniListId = ScrobblingService.ExtractId<int>(w.Url, ScrobblingService.AniListCharacterWebsite),
|
AniListId = ScrobblingService.ExtractId<int>(w.Url, ScrobblingService.AniListCharacterWebsite),
|
||||||
|
// Can I tag links to resolve favicon? Need to parse html, rewrite the urls, then have a
|
||||||
Description = StringHelper.CorrectUrls(StringHelper.RemoveSourceInDescription(StringHelper.SquashBreaklines(w.Description))),
|
Description = StringHelper.CorrectUrls(StringHelper.RemoveSourceInDescription(StringHelper.SquashBreaklines(w.Description))),
|
||||||
})
|
})
|
||||||
.Concat(series.Metadata.People
|
.Concat(series.Metadata.People
|
||||||
|
|
|
||||||
|
|
@ -633,6 +633,7 @@ public class SeriesService : ISeriesService
|
||||||
|
|
||||||
public async Task<string> FormatChapterTitle(int userId, bool isSpecial, LibraryType libraryType, string chapterRange, string? chapterTitle, bool withHash)
|
public async Task<string> FormatChapterTitle(int userId, bool isSpecial, LibraryType libraryType, string chapterRange, string? chapterTitle, bool withHash)
|
||||||
{
|
{
|
||||||
|
// TODO: Refactor so this is unit testable
|
||||||
if (string.IsNullOrEmpty(chapterTitle) && (isSpecial || libraryType == LibraryType.Book)) throw new ArgumentException("Chapter Title cannot be null");
|
if (string.IsNullOrEmpty(chapterTitle) && (isSpecial || libraryType == LibraryType.Book)) throw new ArgumentException("Chapter Title cannot be null");
|
||||||
|
|
||||||
if (isSpecial)
|
if (isSpecial)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue