1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Apply suggestions from code review

Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
Cody Robibero 2024-09-09 11:53:52 -06:00 committed by GitHub
parent 96e49dadd4
commit 6c39c5d9b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -220,12 +220,11 @@ function renderLyricFetchers(page, availableOptions, libraryOptions) {
const elem = page.querySelector('.lyricFetchers');
let plugins = availableOptions.LyricFetchers;
plugins = getOrderedPlugins(plugins, libraryOptions.LyricFetcherOrder || []);
plugins = getOrderedPlugins(plugins, libraryOptions.LyricFetcherOrder);
if (!plugins.length) return html;
html += `<h3 class="checkboxListLabel">${globalize.translate('LabelLyricDownloaders')}</h3>`;
html += '<div class="checkboxList paperList checkboxList-paperList">';
console.log(libraryOptions);
for (let i = 0; i < plugins.length; i++) {
const plugin = plugins[i];
html += `<div class="listItem lyricFetcherItem sortableOption" data-pluginname="${escapeHtml(plugin.Name)}">`;