mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-09 15:24:14 -05:00
[PR #144] [CLOSED] Niconico video support #1026
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/144
Author: @TylerLafayette
Created: 6/22/2023
Status: ❌ Closed
Base:
current← Head:niconico-support📝 Commits (7)
4015799nicovideo: basic niconico video support193e822nicovideo: add audio filename0dba8d1nicovideo: add Niconico to "Supported services" in READMEd489007nicovideo: fix deepsource variable shadowing lint7baa581nicovideo: add tests6cf3e34Merge branch 'current' into niconico-support6406acaMerge branch 'current' into niconico-support📊 Changes
6 files changed (+171 additions, -1 deletions)
View changed files
📝
src/modules/processing/match.js(+3 -0)➕
src/modules/processing/services/nicovideo.js(+131 -0)📝
src/modules/processing/servicesConfig.json(+6 -0)📝
src/modules/processing/servicesPatternTesters.js(+4 -0)📝
src/modules/stream/types.js(+7 -1)📝
src/test/tests.json(+20 -0)📄 Description
This PR adds support for downloading videos from Niconico/nicovideo.jp. Pretty much all the important work was done by @lurkook in #60, I just implemented it. So thank you! I've tested video and audio-only downloads with a few videos, but I haven't tested it super thoroughly yet, so probably best to consider it experimental for now. We can only get 360p streams, since Niconico paywalls higher qualities for premium members (maybe in the future users could add auth info to the settings page so we can fetch higher quality streams?).
Also, I found a weird quirk with the ffmpeg args and had to add a special case for Nicovideo to disable the
empty_moovflag in-movflags. Otherwise, ffmpeg only saves about a second of video. Not sure why, all I know is removing the flag fixed it lol🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.