Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YT changed channels to handles #469

Open
kamil7732 opened this issue Dec 21, 2022 · 2 comments
Open

YT changed channels to handles #469

kamil7732 opened this issue Dec 21, 2022 · 2 comments

Comments

@kamil7732
Copy link

hi guys,
i guess we need to do an update

channels aren't visible anymore as https://www.youtube.com/channel/UC,....
but now they're as https://www.youtube.com/@handle

currently podsync doesn't work with the new url structure.

@Th0masL
Copy link
Contributor

Th0masL commented Dec 26, 2022

I've added a PR that should fix that

@Th0masL
Copy link
Contributor

Th0masL commented Dec 26, 2022

Actually my PR is not yet working, but please find a workaround below.

Basically if you find a way to know/get the Channel name, you should be good.

So the idea is to use CURL to query the page using the handle URL, and get the channel ID from the HTML code:

curl -D- --silent https://www.youtube.com/@NASA | tr ',' '\n' | grep "externalId" 
"externalId":"UCLA_DiR1FfKNvjuUpBHmylQ"

Then you can define your feed using the /channel/xxx URL :

[feeds]
  [feeds.NASA]
  url = "https://www.youtube.com/@NASA" # not working
  url = "https://www.youtube.com/channel/UCLA_DiR1FfKNvjuUpBHmylQ" # should be working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants