修正某些源站剧集顺序

This commit is contained in:
buvta
2021-01-19 22:34:50 +08:00
parent 01e58f458b
commit 08cbd1a73c

View File

@@ -278,6 +278,9 @@ const zy = {
}
)
}
fullList.forEach(item => {
if (item.list.every(e => e.includes('$') && /^\s*\d+\s*$/.test(e.split('$')[0]))) item.list.sort((a, b) => { return a.split('$')[0] - b.split('$')[0] })
})
if (fullList.length > 1) { // 将ZY支持的播放列表前置
index = fullList.findIndex(e => supportedFormats.includes(e.flag) || e.flag.startsWith('ZY支持'))
if (index !== -1) {