Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[niconico] Downloading long videos requires heartbeat signals #14582
Comments
|
If you want to reporduce, download any video from niconico. (You do need a username and password from a registed account.) Let it download. it will work for a while(approximately 3minutes ore more before the link changes... then it errors out.) |
|
Nico Nico Douga seems that access will be disconnected unless a heartbeat signal is sent regularly. |
|
I added that flag as I can still download full videos and the downloaded file appears fine. Tried both two days ago and just now:
I guess 2 seconds is shorter than the period of heartbeat signals. Do you have longer examples? |
|
Please try with this URL. |
|
Thanks! I can reproduce the error now
|
|
any update on this? |
|
try this way:
enjoy it! |
|
@awei78 Could you create pull request for this? |
|
@prince0203 I am sorry for my poor English. I think that i can not create it, but I can provide a solution:
|
|
@yan12125 Thanks. |
|
@yan12125
Are "Current developers" you two? I'm sorry if my poor english were rude expression... |
|
@dstftw @remitamine |
|
Workaround is to keep running command using loop #19261 (comment) |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.10.20. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
As of today, Nicovideo's seem to implemented a new session system. After every few minutes, the url of the video changes. This causes a 403 Forbidden error on the old url, Causing the Downloader to fail.

A screenshot of part of a video session:
Resuming the download works just for a few minutes before the session is dropped.
Note: I have only tested on a non-premium account. Im not sure if it applies to the permium accounts or not.