karthink / elfeed-tube

Youtube integration for Elfeed, the feed reader for Emacs
The Unlicense
251 stars 11 forks source link

Using `elfeed-org` and `elfeed-tube` to download youtube playlists #32

Open 00krishna opened 2 months ago

00krishna commented 2 months ago

I was reading through the elfeed-tube documentation and the docs indicate that youtube feeds are "org-linkable". I was trying to setup a youtube playlist in elfeed-org but I seem to be getting an error in the *elfeed-log*. I was wondering what the correct way to do this is.

So I have an elfeed1.org file, that contains all of my blog and video feeds. The file works just find for downloading both types of files, so that elfeed tag is set, etc. I created an org link for a playlist. Since this is a playlist, I took the basic URL from the playist share button. A copy of the link is below.

[[https://www.youtube.com/playlist?list=PLxdnSsBqCrrF9KOQRB9ByfB0EUMwnLO9o][Lum Control]]

Now the error I get in the elfeed-log is below. I was wondering why this error is displaying in the elfeed-log instead of the elfeed-tube-log? The elfeed-tube-log is clear of any references to this playlist.

[2024-07-27 11:08:28] [error]: https://youtube.com/playlist?list=PLai5B987bZ9CoVR-QEIN9foz4QCJ0H2Y8&si=2rk8eDphkE2d-c5e: (error XML: (Well-Formed) Couldn’t parse tag: lang="en" d)

Did I put in the playlist wrong or should I try this a different way? Any suggestions would be appreciated.

karthink commented 2 months ago

the docs indicate that youtube feeds are "org-linkable".

Where do the docs imply this?

Since this is a playlist, I took the basic URL from the playist share button.

The basic url of any Youtube page is not the RSS feed for that resource. Elfeed tube provides a command elfeed-tube-add-feeds to extract the RSS feed link from the basic url of a video, channel, search query or playlist. You can use it to find the RSS feed and add that to your list of Elfeed feeds.