mirror of https://github.com/preservetube/auto.git
updating thumbnail getting... some instances fuck up their proxy
This commit is contained in:
parent
bec6af986a
commit
989c4144cd
|
@ -7,7 +7,7 @@ const upload = require('./upload.js')
|
|||
async function createDatabaseVideo(id, videoUrl, playlistId) {
|
||||
const data = await metadata.getVideoMetadata(id)
|
||||
const uploaderAvatar = await upload.uploadImage((data.uploaderUrl).replace('/channel/', ''), data.uploaderAvatar)
|
||||
const thumbnailUrl = await upload.uploadImage(id, data.thumbnailUrl)
|
||||
const thumbnailUrl = await upload.uploadImage(id, `https://i.ytimg.com/vi_webp/${id}/maxresdefault.webp`)
|
||||
|
||||
await prisma.videos.create({
|
||||
data: {
|
||||
|
|
Loading…
Reference in New Issue