Skip to content

Commit

Permalink
! Fix external player handling for video in local playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Sep 26, 2023
1 parent 095fb48 commit 6e9636f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/components/ft-list-video/ft-list-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default defineComponent({
},

inUserPlaylist: function () {
return this.playlistTypeFinal === 'user'
return this.playlistTypeFinal === 'user' || this.selectedUserPlaylist != null
},

selectedUserPlaylist: function () {
Expand All @@ -157,7 +157,7 @@ export default defineComponent({
playlistSharable() {
// `playlistId` can be undefined
// User playlist ID should not be shared
return this.playlistIdFinal && this.playlistIdFinal.length !== 0 && this.selectedUserPlaylist == null
return this.playlistIdFinal && this.playlistIdFinal.length !== 0 && !this.inUserPlaylist
},

invidiousUrl: function () {
Expand Down Expand Up @@ -447,7 +447,7 @@ export default defineComponent({
playlistLoop: this.playlistLoop,
}
// Only play video in non playlist mode when user playlist detected
if (!this.inUserPlaylist) {
if (this.inUserPlaylist) {
Object.assign(payload, {
playlistId: null,
playlistIndex: null,
Expand Down

0 comments on commit 6e9636f

Please sign in to comment.