Open captn3m0 opened 5 years ago
Hi there - Indeed, I don't think it would be technically possible to subsume yt2pod in rss-bridge. But you can certainly use the code as reference material to do the same thing if you want to.
There is apparently an official PHP API client for YouTube, though I'm not sure if the rant in the rss-bridge README means that you prefer scraping, or just that the end-user shouldn't have to care about APIs.
rss-bridge prefers scraping, but I'm not sure if that is a good idea without marking youtube-dl
as a dependency.
You can find an API based YouTubeBridge on the Wiki: https://github.com/RSS-Bridge/rss-bridge/wiki/Extended-Bridges
The bridge probably isn't up to date, as I shifted back to the original bridge for simplicity, but it should generally work.
There is apparently an official PHP API client for YouTube, though I'm not sure if the rant in the rss-bridge README means that you prefer scraping, or just that the end-user shouldn't have to care about APIs.
Scraping is the prefered way because it doesn't involve signing contracts or having to look out for traffic use. Also, API keys are tracked and can be revoked at any moment. That being said, there are already a few bridges utilizing APIs (just search for "API" in the bridges
folder).
I'm not sure if that is a good idea without marking
youtube-dl
as a dependency.
As far as I can tell, youtube-dl
is utilized to download and extract the audio files from YouTube. We can just skip that part and provide links to the destination. The necessary link is actually part of the DOM, just search for "audio" on any video on YouTube.
See #1508
Okay so this is a request for transforming youtube feeds to podcast feeds. Consumable by podcast software?
yt-dlp
is the current generic video downloader thingy, it supports -x
to automatically use ffmpeg
to extract audio.
That's a Python project though, not a simple thing to integrate. Maybe https://github.com/frou/yt2pod is a better fit for this.
yt-dlp
is the current generic video downloader thingy, it supports-x
to automatically useffmpeg
to extract audio.That's a Python project though, not a simple thing to integrate. Maybe https://github.com/frou/yt2pod is a better fit for this.
yt2pod
calls out to the yt-dlp
command at runtime :)
BTW m4a
audio files are one of the many formats that can be downloaded, so the big video files do not necessarily need to be downloaded at all.
this is still relevant. rss-bridge could download and cache the audio files. big change though since it should be done async.
I found https://github.com/frou/yt2pod recently, which looks like a neat solution (Youtube based RSS feeds that work for podcast readers and send only the audio files). I'm not sure how feasible it is without the Youtube-API or
youtube-dl
and in PHP, but might be worth considering./cc @frou