Open jotterbot opened 10 years ago
I have one question: are you accessing the webpage in the same computer where you run the server?
If you have specific suggestions about the documentation, feel free to open a new issue (or even better, a pull request with the proposed changes)
I have a copy of the youtube-dl-api-server and the youtube-dl-web running on the same server. I access it from another computer though. (I tried changing "localhost" to "my-server-ip-address" for example in processURL.js to see if that worked but it didn't).
Please don't take me to mean anything negative or ungrateful by my comments regarding documentation. I just think they could be more clear regarding config/setup.
Ideally it would be great to also include how to run the api server in the backround as a service (I understand that is probably well outside of the scope the documentation requires though).
I will happily amend the instructions to include what worked for me, if I can get it running. Cheers!
I was going to suggest replacing localhost
with your ip adress, but it seems it doesn't work. Maybe the problem is that the port is blocked, in which port are you running youtube-dl-web?
My steps:
$ "sudo apt-get update && sudo apt-get install git python-pip -y" $ "git clone https://github.com/jaimeMF/youtube-dl-api-server.git" $ "cd youtube-dl-api-server/" Per the docs here https://youtube-dl-api-server.readthedocs.org/en/latest/install.html I run: $ "sudo pip install -r requirements.txt" Output:
then I run: $ "python -m youtube_dl_server"
* Running on http://localhost:9191/
Now when I point something like youtube-dl-web (https://github.com/jaimeMF/youtube-dl-web) to my localserver (hosted on same server as youtube-dl-api-server) and search for a youtube video in Chrome console I get:
GET http://localhost:9191/api/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dk-xSP_T0VqU net::ERR_CONNECTION_REFUSED jquery-latest.js:8706 send jquery-latest.js:8706 jQuery.extend.ajax jquery-latest.js:8136 jQuery.(anonymous function) jquery-latest.js:8282 jQuery.extend.getJSON jquery-latest.js:8265 BaseVideoInfo.get_info VideoInfo.js:14 processVideosURL processURL.js:37 processURLform processURL.js:43 onclick (index):47
Have you encountered this? The installation instructions are kind of .... sparse. Can you suggest what I may be doing wrong?
Thank you for your time!