From 724f35dfb148dc41a37723e291d0b48d4f3b5ea9 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Tue, 19 Sep 2023 15:16:23 +0200 Subject: [PATCH] pregress handling for artists --- src/components/Player.vue | 8 +- src/components/dialogs/ArtistViewer.vue | 99 ++++++++++--------------- 2 files changed, 42 insertions(+), 65 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 78fdd3a..0defff9 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -145,9 +145,9 @@ export default { this.pushHistoryItem(); - if (this.selectedTrack.parent.progress) { - this.skipToSecond(this.selectedTrack.parent.progress.progress); - this.selectedTrack.parent.progress = undefined; + if (this.currentTrackParent.progress) { + this.skipToSecond(this.currentTrackParent.progress.progress); + this.currentTrackParent.progress = undefined; } else { // Try to fix SAFARI this.audio.play(); @@ -275,7 +275,7 @@ export default { this.progress = this.audio.currentTime; let item = { id: this.selectedTrack._id, - parentId: this.selectedTrack.parent._id, + parentId: this.currentTrackParent._id, type: "track", progress: Math.round(this.progress) } diff --git a/src/components/dialogs/ArtistViewer.vue b/src/components/dialogs/ArtistViewer.vue index e16b8b6..7d38aeb 100644 --- a/src/components/dialogs/ArtistViewer.vue +++ b/src/components/dialogs/ArtistViewer.vue @@ -1,24 +1,10 @@