Open pjar opened 5 years ago
The lib has hardcoded resolution of the image for the preview it will donwload:
his.getVideoImages = function(videoID){ var obj = {}; obj.preview = "https://i.ytimg.com/vi/"+videoID+"/sddefault.jpg"; obj.thumb = "https://i.ytimg.com/vi/"+videoID+"/default.jpg"; return(obj); }
But some videos don't have sddefault.jpg version and it will show a fallback image:
sddefault.jpg
while they have other resolutions (here default.jpg):
default.jpg
It would be great if other resolutions were supported, or we could pass an option of which version of the image should be used.
The lib has hardcoded resolution of the image for the preview it will donwload:
But some videos don't have
sddefault.jpg
version and it will show a fallback image:while they have other resolutions (here
default.jpg
):It would be great if other resolutions were supported, or we could pass an option of which version of the image should be used.