recipes
recipes copied to clipboard
YouTube import broken
Tandoor Version
1.5.20
Import URL
https://www.youtube.com/watch?v=2KWZ6dPGTrc
When did the issue happen?
Somewhat recently, though I am not sure exactly when. It's pretty much a blank page and no data is taken. this is the case for all YouTube videos.
Response / message shown
No response
upstream bug https://github.com/pytube/pytube/issues/2044
From the linked thread, it looks like pytube is not updated anymore, but there is an alternative package that appears to be popular: https://github.com/JuanBindez/pytubefix
It would be awesome to have YouTube imports in Tandoor!
pytube fix is already used by tandoor but sadly google changed youtube again. you basically now need a node js binary running on the server to emulate a browser and obtain some kind of key. I will be looking into this but i fear it will probably break again in the future. The stupid thing is I only want the description and thumbnail, not even download.
Maybe there is some other solution than using pytube to scrape just the basic page information (maybe trough the social media headers or something)