Skip to content

Commit

Permalink
Use correct thumbnails for playlist page
Browse files Browse the repository at this point in the history
  • Loading branch information
jadenet committed Jun 27, 2023
1 parent 9b2a174 commit fb516bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/components/playlist-info/playlist-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineComponent({
return {
id: '',
firstVideoId: '',
playlistThumbnail: '',
title: '',
channelThumbnail: '',
channelName: '',
Expand Down Expand Up @@ -54,7 +55,7 @@ export default defineComponent({
if (this.backendPreference === 'invidious') {
baseUrl = this.currentInvidiousInstance
} else {
baseUrl = 'https://i.ytimg.com'
return this.playlistThumbnail
}

switch (this.thumbnailPreference) {
Expand Down
1 change: 1 addition & 0 deletions src/renderer/views/Playlist/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default defineComponent({
title: result.info.title,
description: result.info.description ?? '',
firstVideoId: result.items[0].id,
playlistThumbnail: result.info.thumbnails[0].url,
viewCount: extractNumberFromString(result.info.views),
videoCount: extractNumberFromString(result.info.total_items),
lastUpdated: result.info.last_updated ?? '',
Expand Down

0 comments on commit fb516bf

Please sign in to comment.