anyaudio / anyaudio-server

:musical_note: Simple server to search youtube and give direct audio download and stream links
91 stars 19 forks source link

Add stream-url in trending API #91

Closed ansarimofid closed 8 years ago

ansarimofid commented 8 years ago

Stream URL is not available for trending results. check

singhpratyush commented 8 years ago

Yes there is not. Forgot to add it. In the mean time, you can replace /api/v1/g in get_url with /api/v1/stream to get stream_url.

aviaryan commented 8 years ago

@singhpratyush I have added a fix here (https://github.com/aviaryan/youtube-mp3-server/commit/f6e45510dfc8f63e5fbd2882e56423d4762ccef4). Waiting for travis to pass.

aviaryan commented 8 years ago

@singhpratyush I have solved the issue but Travis is failing due to some postgres issue. Please help.

singhpratyush commented 8 years ago

Can you give a link to Travis check page where it fails.

singhpratyush commented 8 years ago

I think that you do need to add postgresql and postgresql-contrib to that tree in .travis.yml.

sudo apt-get install -qq libpq-dev python2.7-dev postgresql postgresql-contrib
aviaryan commented 8 years ago

No that didn't work. That was because postgresql that was being installed was 9.6 and travis had 9.1. So installing failed. You can see the travis builds here https://travis-ci.com/aviaryan/youtube-mp3-server/builds

singhpratyush commented 8 years ago

How about adding sudo service postgresql start?

aviaryan commented 8 years ago

No. It didn't work. Still the same error.

psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?