recipes icon indicating copy to clipboard operation
recipes copied to clipboard

YouTube import broken

Open advait404 opened this issue 1 year ago • 3 comments
trafficstars

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.

image

Response / message shown

No response

advait404 avatar Oct 09 '24 05:10 advait404

upstream bug https://github.com/pytube/pytube/issues/2044

smilerz avatar Oct 09 '24 12:10 smilerz

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!

JulioC avatar Apr 30 '25 05:04 JulioC

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)

vabene1111 avatar May 07 '25 06:05 vabene1111