mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Add:Local setting for autoplay next item in queue #603
This commit is contained in:
parent
772c7b3217
commit
dee4ca3559
7 changed files with 44 additions and 11 deletions
|
@ -669,6 +669,7 @@ export default {
|
|||
|
||||
if (fullLibraryItem && fullLibraryItem.media.episodes) {
|
||||
const episodes = fullLibraryItem.media.episodes || []
|
||||
episodes.sort((a, b) => b.publishedAt - a.publishedAt)
|
||||
const episodeIndex = episodes.findIndex((ep) => ep.id === this.recentEpisode.id)
|
||||
if (episodeIndex >= 0) {
|
||||
for (let i = episodeIndex; i < episodes.length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue