@nomercy-entertainment/nomercy-video-player 2.2.7 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -544,13 +544,17 @@ export function renderPlaylistPane(pane, player, listen, onPick, opts = {}) {
|
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
546
|
pane.classList.remove('playlist-flat');
|
|
547
|
-
|
|
547
|
+
// Specials (season 0) come after the last season, as in the playlist.
|
|
548
|
+
const seasons = Array.from(new Set(queue.map(item => item.season).filter((season) => typeof season === 'number')))
|
|
549
|
+
.sort((itemA, itemB) => Number(itemA === 0) - Number(itemB === 0) || itemA - itemB);
|
|
548
550
|
const currentItem = queue[curIdx];
|
|
549
551
|
const activeSeason = typeof currentItem?.season === 'number' ? currentItem.season : (seasons[0] ?? 1);
|
|
550
552
|
if (seasonScroll) {
|
|
551
553
|
seasonScroll.replaceChildren();
|
|
552
554
|
for (const sNum of seasons) {
|
|
553
|
-
const seasonLabel =
|
|
555
|
+
const seasonLabel = sNum === 0
|
|
556
|
+
? player.t('plugin.desktop-ui.token.extras')
|
|
557
|
+
: player.t('plugin.desktop-ui.menu.season', { number: String(sNum) });
|
|
554
558
|
const btn = createButton(`season-button-${sNum}`, seasonLabel, () => { });
|
|
555
559
|
btn.classList.add('language-button');
|
|
556
560
|
if (sNum === activeSeason)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomercy-entertainment/nomercy-video-player",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.8",
|
|
5
5
|
"description": "Headless, event-driven HTML5 video player with HLS streaming, subtitle rendering (VTT/ASS/SSA), and a plugin system. No UI — you build your own.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "NoMercy Entertainment",
|