This commit is contained in:
1 parent
68f0b95fe5
commit
316f83edf2
2 files changed
+2
-2
No files matched your search
@@ -38,7 +38,7 @@ const thumbnailUrl = siteUrl(`video/${encodeURIComponent(video.name)}/thumbnail.
|
||||
<VideoPlayer client:load src={streamUrl} type={video.contentType} title={title} poster={thumbnailUrl} />
|
||||
|
||||
{longDescription && (
|
||||
<p class="max-w-3xl text-base leading-relaxed whitespace-pre-line text-base-content/70">{longDescription}</p>
|
||||
<p class="text-base leading-relaxed whitespace-pre-wrap text-base-content/70">{longDescription}</p>
|
||||
)}
|
||||
</section>
|
||||
</WebsiteLayout>
|
||||
+1
-1
@@ -116,7 +116,7 @@ export async function getVideoMetadata(video: ResolvedVideo): Promise<VideoMetad
|
||||
metadata = {
|
||||
title: tags['title'] || video.name,
|
||||
description: tags['description'],
|
||||
longDescription: tags['synopsis']
|
||||
longDescription: tags['synopsis']?.replace(/\\r\\n|\\n/g, '\n') ?? null
|
||||
};
|
||||
} catch (e) {
|
||||
logger.warn({ error: e instanceof Error ? e.message : String(e) }, 'error while reading video metadata');
|
||||
|
||||
Reference in new issue
Block a user