tsukinoinaba / MochiFeed

A local YouTube subscription feed on the CLI!
GNU General Public License v3.0
0 stars 0 forks source link

Video with "NA" duration appearing in feed #4

Open tsukinoinaba opened 1 month ago

tsukinoinaba commented 1 month ago

Cause

This occurs when there is an ongoing livestream.

Consequences

yt-dlp is actually able to download streams while they are live, albeit without passing any flags, it does not download from the beginning but at the current point in the stream.

Proposed solution

See https://github.com/tsukinoinaba/MochiFeed/issues/2#issuecomment-2394877170.

tsukinoinaba commented 1 month ago

From testing, downloading livestreams seems a bit buggy? The audio was cut out in one attempt (without using --live-from-start). And in another, when using --live-from-start, it says a YouTube token is required? Subsequent attempts work as expected.

yt-dlp also doesn't have a way to download a section of a video, but an interrupt with ctrl+c can cause it to stop early and still create a video with what it already has.