0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 04:35:17 +00:00

refactor(thumbnail): Changed video preview quality from maxresdefault to hqdefault.

This commit is contained in:
Georgiy 2023-05-26 18:44:28 +03:00
parent 1954f44802
commit e2db406b90
3 changed files with 5 additions and 5 deletions

View file

@ -84,10 +84,10 @@ export default {
try {
const videoId =
this.playlist.videos.length === 0 ? "" : this.playlist.videos[0].id;
return `https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`;
return `https://img.youtube.com/vi/${videoId}/hqdefault.jpg`;
} catch (e) {
alert(e.message);
return `https://img.youtube.com/vi//maxresdefault.jpg`;
return `https://img.youtube.com/vi//hqdefault.jpg`;
}
},
},

View file

@ -89,7 +89,7 @@ export default {
props: { video: { type: Object, required: true } },
computed: {
thumbnail() {
return `https://img.youtube.com/vi/${this.video.id}/maxresdefault.jpg`;
return `https://img.youtube.com/vi/${this.video.id}/hqdefault.jpg`;
},
},
methods: {

View file

@ -89,7 +89,7 @@ export default {
props: ["video"],
computed: {
thumbnail() {
return `https://img.youtube.com/vi/${this.video.id}/maxresdefault.jpg`;
return `https://img.youtube.com/vi/${this.video.id}/hqdefault.jpg`;
},
},
methods: {
@ -98,4 +98,4 @@ export default {
},
},
};
</script>
</script>