laundry
laundry copied to clipboard
Use ytdl native downloader
Currently we use ytdl.getInfo to get the URL of a video stream, and then use our own logic to download it. Instead, we should use ytdl's native downloading facility to download to a temp location, and then move it to wherever it needs to be.
This should hopefully allow ytdl to do its own post-processing and merging of streams, as in this example: https://github.com/fent/node-youtube-dl/issues/97
However to get that working we'll also need ffmpeg installed, which may need to be done as a post-install step in the laundry package.
This would also enable the ability to download just audio from youtube, which would be helpful for podcast feeds.