It doesn't take much glue to make them work together. I paste a url into a textbox, flask runs yt-dlp in a subprocess, file saves to an area already defined to be a Plex library for youtube videos. I make playlists or ersatztv schedules as needed in the respective UIs.