low quality thumbnail fix
This commit is contained in:
parent
1bbd702a9d
commit
f17c0c1f16
|
|
@ -1,6 +1,6 @@
|
|||
<% layout('./layout') %>
|
||||
<div class="sorry">
|
||||
YouTube changed some things, causing downloads to be unstable. Right now, there's a high chance downloads won't work. This should hopefully be fixed in the coming days.
|
||||
Saving videos should be stable again. Will try some more experiments in the coming days.
|
||||
</div>
|
||||
|
||||
<div id="logs" class="logs">
|
||||
|
|
@ -57,9 +57,9 @@
|
|||
.sorry {
|
||||
margin-top: 10px;
|
||||
position: relative;
|
||||
background-color: #ffd8cfff;
|
||||
border-top: 2px dashed #da7b5eff;
|
||||
border-bottom: 2px dashed #da7b5eff;
|
||||
background-color: #cfeeffff;
|
||||
border-top: 2px dashed #5ebbdaff;
|
||||
border-bottom: 2px dashed #5ebbdaff;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
text-align: center;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ async function createDatabaseVideo(id: string, videoUrl: string) {
|
|||
if (channelData.error) return channelData
|
||||
|
||||
const uploaderAvatar = await uploadImage(data.videoDetails.channelId, channelData.metadata.thumbnail[0].url)
|
||||
const thumbnailUrl = await uploadImage(id, data.videoDetails.thumbnail.thumbnails[0].url)
|
||||
const thumbnailUrl = await uploadImage(id, data.microformat.playerMicroformatRenderer.thumbnail.thumbnails[0].url)
|
||||
|
||||
await db.insertInto('videos')
|
||||
.values({
|
||||
|
|
|
|||
Loading…
Reference in New Issue