chore: add link to GitHub on configure page, improve content type info

This commit is contained in:
WebStreamr 2025-05-13 12:50:53 +00:00
parent f0a8ab540a
commit 1be75645d3
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -267,9 +267,15 @@ export function landingTemplate(manifest: ManifestWithConfig) {
<h2 class="description">${manifest.description || ''}</h2>
<div class="separator"></div>
<p>
The source code can be found on <a href="https://github.com/webstreamr/webstreamr" target="_blank">GitHub</a>
</p>
<div class="separator"></div>
${process.env['CONFIGURATION_DESCRIPTION'] || ''}
<div class="separator"></div>
<h3 class="gives">This addon has more :</h3>

View file

@ -29,7 +29,7 @@ export const buildManifest = (handlers: Handler[], config: Config): ManifestWith
manifest.config.push({
key: handler.id,
type: 'checkbox',
title: `${handler.languages.map(language => flag(language)).join(' ')} | ${handler.label} (${handler.contentTypes.join(', ')})`,
title: `${handler.languages.map(language => flag(language)).join(' ')} | ${handler.label} (${handler.contentTypes.map(contentType => contentType.replace('movie', 'movies')).join(', ')})`,
...(handler.id in config && { default: 'checked' }),
});
});