imputnet / cobalt

save what you love
https://cobalt.tools
GNU Affero General Public License v3.0
10.69k stars 771 forks source link

NicoNico support #60

Open lurkook opened 1 year ago

lurkook commented 1 year ago

This will be useful because other downloaders are hard to find and it might just not work.

Some research

NicoNico video pages has authorization data for guest user in HTML attribute with id="js-initial-watch-data".

Front-end web sends to POST request to https://api.dmc.nico/api/sessions?_format=json (The DMC service; Modern delivery system) with JSON body of some data from authorization data.

The DMC service will respond with authorized URL to the master M3U8. And yes, NicoNico uses HLS VOD...

Preview URLs

notChocoMilk commented 4 months ago

interesting.. i'll close my issue, because i didn't see this prior