mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 11:21:57 +00:00
fix: autoplay error when no best release is found
This commit is contained in:
parent
9b7975e75f
commit
e34d97bb24
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Miru",
|
"name": "Miru",
|
||||||
"version": "2.13.2",
|
"version": "2.13.3",
|
||||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"homepage": "https://github.com/ThaUnknown/miru#readme",
|
"homepage": "https://github.com/ThaUnknown/miru#readme",
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,7 @@ async function parseRss ({ media, episode }) {
|
||||||
entries.sort((a, b) => b.seeders - a.seeders)
|
entries.sort((a, b) => b.seeders - a.seeders)
|
||||||
if (settings.rssAutoplay) {
|
if (settings.rssAutoplay) {
|
||||||
const best = entries.find(entry => entry.best)
|
const best = entries.find(entry => entry.best)
|
||||||
if (best.seeders > 20) { // only play best if it actually has a lot of seeders, 20 might be too little for those overkill blurays
|
if (best?.seeders > 20) { // only play best if it actually has a lot of seeders, 20 might be too little for those overkill blurays
|
||||||
play(best)
|
play(best)
|
||||||
} else {
|
} else {
|
||||||
play(entries[0])
|
play(entries[0])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue