feat: Add Random Sort Option to MVLEMPYR (#1936)

* Add random sort option to mvlempyr

* Version bump
This commit is contained in:
Soopyboo32
2025-12-23 18:31:29 +08:00
committed by GitHub
parent 0f982c4e14
commit bd691306f9
+3 -1
View File
@@ -28,7 +28,7 @@ class MVLEMPYRPlugin implements Plugin.PluginBase {
name = 'MVLEMPYR'; name = 'MVLEMPYR';
icon = 'src/en/mvlempyr/icon.png'; icon = 'src/en/mvlempyr/icon.png';
site = 'https://www.mvlempyr.io/'; site = 'https://www.mvlempyr.io/';
version = '1.0.11'; version = '1.0.12';
_chapSite = 'https://chap.heliosarchive.online/'; _chapSite = 'https://chap.heliosarchive.online/';
_allNovels: (Plugin.NovelItem & ExtraNovelData)[] | undefined; _allNovels: (Plugin.NovelItem & ExtraNovelData)[] | undefined;
@@ -229,6 +229,7 @@ class MVLEMPYRPlugin implements Plugin.PluginBase {
created: new Date(novel['createdOn']).getTime(), created: new Date(novel['createdOn']).getTime(),
genres: novel.genre, genres: novel.genre,
tags: novel.tags, tags: novel.tags,
random: Math.random(),
}; };
}); });
} }
@@ -243,6 +244,7 @@ class MVLEMPYRPlugin implements Plugin.PluginBase {
{ label: 'Best Rated', value: 'avgReview' }, { label: 'Best Rated', value: 'avgReview' },
{ label: 'Most Reviewed', value: 'reviewCount' }, { label: 'Most Reviewed', value: 'reviewCount' },
{ label: 'Chapter Count', value: 'chapterCount' }, { label: 'Chapter Count', value: 'chapterCount' },
{ label: 'Random', value: 'random' },
], ],
}, },
// update genres and tags with this script if needed // update genres and tags with this script if needed