mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-28 06:14:00 +02:00
Merge pull request #1775 from anstosa/ansel/playnextepisodesort
Play Next Episode correctly for serial podcasts
This commit is contained in:
@@ -535,7 +535,11 @@ export default {
|
|||||||
|
|
||||||
if (this.isPodcast) {
|
if (this.isPodcast) {
|
||||||
this.episodes.sort((a, b) => {
|
this.episodes.sort((a, b) => {
|
||||||
return String(b.publishedAt).localeCompare(String(a.publishedAt), undefined, { numeric: true, sensitivity: 'base' })
|
if (this.podcastType === 'serial') {
|
||||||
|
return String(a.publishedAt).localeCompare(String(b.publishedAt), undefined, { numeric: true, sensitivity: 'base' })
|
||||||
|
} else {
|
||||||
|
return String(b.publishedAt).localeCompare(String(a.publishedAt), undefined, { numeric: true, sensitivity: 'base' })
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
let episode = this.episodes.find((ep) => {
|
let episode = this.episodes.find((ep) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user