Skip to content

Commit

Permalink
Download correct resolution for side bar channel thumbnails (#5062)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored May 5, 2024
1 parent e4633a6 commit 09c18c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer/components/side-nav/side-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export default defineComponent({
activeSubscriptions: function () {
const subscriptions = deepCopy(this.activeProfile.subscriptions)

subscriptions.forEach(channel => {
// Change thumbnail size to 35x35, as that's the size we display it
// so we don't need to download a bigger image (the default is 176x176)
channel.thumbnail = channel.thumbnail?.replace(/=s\d+/, '=s35')
})

subscriptions.sort((a, b) => {
return a.name?.toLowerCase().localeCompare(b.name?.toLowerCase(), this.locale)
})
Expand Down

0 comments on commit 09c18c5

Please sign in to comment.