AdvMaple / bilibili-subtitle-download-plugin

personal script to download subtitle from bilibili.tv (previously biliintl.com )
93 stars 25 forks source link

Not downloading #45

Closed jjaruna closed 10 months ago

jjaruna commented 10 months ago

Hi, I am trying to download this video: https://www.bilibili.tv/en/video/4787455373613568?bstar_from=bstar-web.my-history-all.0.0

and it stays as shown in the picture. Is there any way to download it or am I doing something wrong?

bd03eb93-00c0-44dd-bea1-e7bb5216e0ac

calavikevin commented 10 months ago

Right-click on the path, then select "Save as..."

jjaruna commented 10 months ago

Right-click on the path, then select "Save as..."

It doesn't let me either, if you do it, will it let you ? 2000349429270_2

calavikevin commented 10 months ago

Right click on the path from download link of plugin

calavikevin commented 10 months ago

image

jjaruna commented 10 months ago

Right click on the path from download link of plugin

OMG I'm an idiot lmao, thank you very much for the help. It will help me to download a lot of videos!

jjaruna commented 10 months ago

Hi, sorry to reopen the thread. I'm programming a video downloader from BiliBili.tv where I automatically join the video and audio using FFmpeg.

I'm using CLI and Python, but I have a problem, since it's my first time querying the BiliBili API. When I try to download videos longer than 10 minutes, it limits the file download and only processes 12.5MB, making the file corrupt. 46567756756

This is the request I make to get the url of the video in 720 quality.

def1

I'm seeing that in your program, you make the API request and include a: { credentials: "include" }

Any idea?

I apologize for asking here, but I don't have where and I didn't find API docs to see how to do it.

AdvMaple commented 10 months ago

For the

When I try to download videos longer than 10 minutes, it limits the file download and only processes 12.5MB, making the file corrupt.

I really don't know why, this can be caused by many reasons: file type, the code you implement, the server limit, load balance, so can't help you here.

But for the

I'm seeing that in your program, you make the API request and include a: { credentials: "include" }

This is because Bilibili authenticate your request using cookie, and not by header.

jjaruna commented 10 months ago

Thank you for your help, I am now including the Cookies option.

You will not believe me, but I just downloaded the video that has not let me all day and just let me lmao.

The BiliBili API works very weird lol

jjaruna commented 10 months ago

I update

I tried adding the cookies to the request and it didn't work either. In fact since the comment I posted above, saying it let me download, now it won't let me download the video files at 100%, they corrupt at 12%.

I don't know what to do anymore xD

AdvMaple commented 10 months ago

Afraid beyond helping you with the API and the authentication as I said above, I can't help you further because of limited knowledge of your code.