diff --git a/src/renderer/components/ft-list-video/ft-list-video.js b/src/renderer/components/ft-list-video/ft-list-video.js index d26716f69..ee6fd6f63 100644 --- a/src/renderer/components/ft-list-video/ft-list-video.js +++ b/src/renderer/components/ft-list-video/ft-list-video.js @@ -9,8 +9,8 @@ import { showToast, toLocalePublicationString, toDistractionFreeTitle, - isNullOrEmpty } from '../../helpers/utils' +import { isNullOrEmpty } from '../../helpers/strings' import { getPipedUrlInfo } from '../../helpers/api/piped' import { deArrowData } from '../../helpers/sponsorblock' diff --git a/src/renderer/components/playlist-info/playlist-info.js b/src/renderer/components/playlist-info/playlist-info.js index ef8c7d7a7..10056a443 100644 --- a/src/renderer/components/playlist-info/playlist-info.js +++ b/src/renderer/components/playlist-info/playlist-info.js @@ -1,6 +1,7 @@ import { defineComponent } from 'vue' import FtShareButton from '../ft-share-button/ft-share-button.vue' -import { copyToClipboard, formatNumber, isNullOrEmpty, openExternalLink } from '../../helpers/utils' +import { copyToClipboard, formatNumber, openExternalLink } from '../../helpers/utils' +import { isNullOrEmpty } from '../../helpers/strings' import { getPipedUrlInfo } from '../../helpers/api/piped' export default defineComponent({ diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.js b/src/renderer/components/watch-video-playlist/watch-video-playlist.js index 40fa8ce69..51e129786 100644 --- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js +++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js @@ -136,6 +136,9 @@ export default defineComponent({ }, playlistId: function (newVal, oldVal) { if (oldVal !== newVal) { + if (this.backendPreference === 'piped') { + this.getPlaylistInformationPiped() + } if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') { this.getPlaylistInformationInvidious() } else { @@ -149,6 +152,8 @@ export default defineComponent({ if (cachedPlaylist?.id === this.playlistId) { this.loadCachedPlaylistInformation(cachedPlaylist) + } else if (this.backendPreference === 'piped') { + this.getPlaylistInformationPiped() } else if (!process.env.IS_ELECTRON || this.backendPreference === 'invidious') { this.getPlaylistInformationInvidious() } else { diff --git a/src/renderer/helpers/api/piped.js b/src/renderer/helpers/api/piped.js index fae7ed04b..8eb9c753e 100644 --- a/src/renderer/helpers/api/piped.js +++ b/src/renderer/helpers/api/piped.js @@ -1,5 +1,6 @@ import store from '../../store/index' -import { isNullOrEmpty, toLocalePublicationString } from '../utils' +import { toLocalePublicationString } from '../utils' +import { isNullOrEmpty } from '../strings' function getCurrentInstance() { return store.getters.getCurrentPipedInstance