Merge pull request #2 from ThisIsHetz/ThisIsHetz-Patch-1

Add fix for unclosed HTML breaks
This commit is contained in:
DarkFighterLuke 2024-04-18 21:36:19 +02:00 committed by GitHub
commit eefdd2a635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Utilities
if (description.Length > maxLength)
{
description = description.Replace("\n", "<br>", System.StringComparison.CurrentCulture).Substring(0, maxLength);
description = description.Substring(0, maxLength);
description = description.Replace("\n", "<br>", System.StringComparison.CurrentCulture);
}
return description;