Closed superbonaci closed 3 months ago
Does it make any sense?
Currently the api requests only require UserId
which is hardcoded.
I don't think it's necessary right now.
So if the VOD is subscriber only shouldn't matter, because you get the segments from the live playlist, and the VOD is available while it's live? What happens if the live has already ended and it's subscriber only?
What happens if the live has already ended and it's subscriber only?
It's not supported right now but can be implemented using 3rd party services like twitchtracker. OAuth token is not necessary
ok then closing.
Reopening since looks like oauth is necessary:
$ npx twitch-dlp 'https:/www.twitch.tv/videos/2203484052'
Downloading video access token
Downloading video metadata
Downloading video manifest
Couldn't find playlist url. Trying to recover it from video metadata
/home/memetix_/twitch-dlp/twitch-dlp.js:521
if (!downloadFormat) throw new Error('Wrong format');
^
Error: Wrong format
at downloadVideo (/home/memetix_/twitch-dlp/twitch-dlp.js:521:30)
at main (/home/memetix_/twitch-dlp/twitch-dlp.js:688:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v22.5.1
@superbonaci just added support for sub-only videos in 0.2.6 You can try it.
It's not working, some segments are ok but other are text files.
AccessDenied
AccessDenied
2203484052 is not subscriber only anymore.
some segments are ok but other are text files
Thanks for testing.
Looks like some segments have -unmuted.ts
in their names, but in fact they are not available.
Probably they're only available for 24 hours after the stream.
Manually changing fragment names to -muted.ts
works fine.
It's not working, some segments are ok but other are text files.
I fixed downloading unmuted fragments in v0.2.8
From my tests, unmuted fragments aren't available at least in 4 hours after the end of the stream. So I don't think it's possible to restore them.
Currently there is a bug with merging muted fragments. But it should work fine for sub-only/hidden VODs without muted segments.
But in v0.2.8 the fragments will download all correctly, or it depends if there are muted fragments or not? I mean should work in all cases, without taking into account the merging issue which is another bug.
in v0.2.8 the fragments will download all correctly the merging issue which is another bug
Yeah, all fragments download correctly now, regular and muted.
$ npx twitch-dlp 'https:/www.twitch.tv/videos/2203484052'
Add second slash after :
Confirming that now downloads all segments for the sub-only, thanks.
Could be useful to add oauth? Does it make any sense?
It could be required when some options are combined?