Closed geweb7 closed 11 years ago
Are you doing the calls to youtube-dl.appspot.com or to a custom server? The first one doesn't give working urls for youtube, and there's nothing I can do. But you can deploy your own server and get the correct urls (if you download them on the same network.
I used youtube-dl.appspot.com and youtube-dl on my server. Right, the problem is with diffrent network. I mean the url works on my local server (the same ip), but it doesn't work on remote server (visitor and server are on different ips). So we can't make web service for visitors to download files from youtube anymore, can we?
No, but it has never worked for me. Did you ever get it to work?
No, I ddn't use this app before, I just tried it today. But I thought it worked earlier because there is big amount of code devoted to youtube in InfoExtractors.py. I wnated to let my users download files from youtube. So there is no possibility to convert video links and give them right direct urls on my site? Any thoughts would be appreciated.
You have confussed some things:
One method that will work is to download the videos in your server and then give the user a link to the file in your server.
I see. Downloading videos to my server isn't the option. Thank you anyway.
Hi JaimeMF,
I found a way not storing video on server, but just making a kind of "proxy" reading from youtube url and flushing it to response directly.
I made an app on GAE using gae-boilerplate and youtube-dl just to test this idea and it works!
Where youtube_url is the CHANNEL url that you whant to transform in iTunes Podcast Feed.
It will return an RSS feed that can be fetched by itunes. And there you can download the videos using itag18.
Each item url on "
There is a few limitations still, because I´m using GAE and it´s have 20M/minute fetching limitation and others, but I will change the code to works on any server.
I will put the code in github soon
Thanks, I'll probably not implement it since it would quickly surpass the GAE limits, but I'd like to see your code.
Hi Jaime, I share my repo with you. As I´m in very beginning I prefer to keep it private for while
Very interested in your solution Douglas
any update on this please? :)
@stnguyen I can watch the YouTube videos now, I guess they changed something.
youtube-dl-api-server gives video info with urls but we can't download video by those urls. Youtube.com answers with 403