Downloader: rename UrlToJPG to urlToJPG

This commit is contained in:
TC
2021-05-08 22:48:18 +02:00
parent 163dc7e1d1
commit a3778af48a
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ module.exports.getFolder = (customFolder) =>
module.exports.defaultMenuDownloadLabel = "Download playlist";
const orderedQualityList = ["maxresdefault", "hqdefault", "mqdefault", "sdddefault"];
module.exports.UrlToJPG = (imgUrl, videoId) => {
module.exports.urlToJPG = (imgUrl, videoId) => {
if (!imgUrl || imgUrl.includes(".jpg")) return imgUrl;
//it will almost never get further than hqdefault
for (const quality of orderedQualityList) {