low quality thumbnail fix
This commit is contained in:
parent
1bbd702a9d
commit
f17c0c1f16
|
|
@ -1,6 +1,6 @@
|
||||||
<% layout('./layout') %>
|
<% layout('./layout') %>
|
||||||
<div class="sorry">
|
<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>
|
||||||
|
|
||||||
<div id="logs" class="logs">
|
<div id="logs" class="logs">
|
||||||
|
|
@ -57,9 +57,9 @@
|
||||||
.sorry {
|
.sorry {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #ffd8cfff;
|
background-color: #cfeeffff;
|
||||||
border-top: 2px dashed #da7b5eff;
|
border-top: 2px dashed #5ebbdaff;
|
||||||
border-bottom: 2px dashed #da7b5eff;
|
border-bottom: 2px dashed #5ebbdaff;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ async function createDatabaseVideo(id: string, videoUrl: string) {
|
||||||
if (channelData.error) return channelData
|
if (channelData.error) return channelData
|
||||||
|
|
||||||
const uploaderAvatar = await uploadImage(data.videoDetails.channelId, channelData.metadata.thumbnail[0].url)
|
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')
|
await db.insertInto('videos')
|
||||||
.values({
|
.values({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue