Skip to content

Commit 09c18c5

Browse files
authored
Download correct resolution for side bar channel thumbnails (#5062)
1 parent e4633a6 commit 09c18c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/renderer/components/side-nav/side-nav.js

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ export default defineComponent({
3535
activeSubscriptions: function () {
3636
const subscriptions = deepCopy(this.activeProfile.subscriptions)
3737

38+
subscriptions.forEach(channel => {
39+
// Change thumbnail size to 35x35, as that's the size we display it
40+
// so we don't need to download a bigger image (the default is 176x176)
41+
channel.thumbnail = channel.thumbnail?.replace(/=s\d+/, '=s35')
42+
})
43+
3844
subscriptions.sort((a, b) => {
3945
return a.name?.toLowerCase().localeCompare(b.name?.toLowerCase(), this.locale)
4046
})

0 commit comments

Comments
 (0)