microlinkhq / youtube-dl-exec

A simple Node.js wrapper for youtube-dl/yt-dlp.
MIT License
423 stars 75 forks source link

`--download-sections` unsupported #195

Closed ekrata-main closed 4 months ago

ekrata-main commented 4 months ago

no downloadSections param available on options object

Kikobeats commented 4 months ago

The library goal was never to be useful for download, use the raw binary for that 🙂

mikeyaworski commented 4 months ago

I disagree with closing this issue.

  1. --download-sections works as is because it is passed to yt-dlp, but it's just not included in the Flags type.
  2. This flag is perfect for seeking to specific parts of the audio/video, even when streaming the data from yt-dlp to whatever else. I'm not sure what downloading has to do with it. I use this flag for streaming audio to Discord.
  3. Similarly, --force-keyframes-at-cuts should be added to the Flags type.
Kikobeats commented 4 months ago

@mikeyaworski can you make a PR?