Skip to content

Commit

Permalink
Fixed YouTube sd thumbnails being preferred over hq
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Feb 20, 2021
1 parent 5569f3b commit 29b30e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ function notify(msg) {
async function getYouTubeThumbnail(id) {
const urls = [
`https://img.youtube.com/vi/${id}/maxresdefault.jpg`,
`https://img.youtube.com/vi/${id}/sddefault.jpg`,
`https://img.youtube.com/vi/${id}/hqdefault.jpg`,
`https://img.youtube.com/vi/${id}/sddefault.jpg`,
];
const urlPromises = urls.map(url => {
return async function() {
Expand Down

0 comments on commit 29b30e3

Please sign in to comment.