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:
parent
1954f44802
commit
e2db406b90
3 changed files with 5 additions and 5 deletions
|
@ -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`;
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue