Merge pull request #1775 from anstosa/ansel/playnextepisodesort

Play Next Episode correctly for serial podcasts
This commit is contained in:
advplyr
2026-01-30 17:11:54 -06:00
committed by GitHub
+5 -1
View File
@@ -535,7 +535,11 @@ export default {
if (this.isPodcast) {
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) => {