rusty_pipe icon indicating copy to clipboard operation
rusty_pipe copied to clipboard

Interested in using rusty_pipe but I don't know where to start.

Open ghost opened this issue 4 years ago • 5 comments

Hi, I found this project and I would like to use it to make a youtube front-end. However, I have no idea how to get started as there are no documentation. It would be helpful to add read.me

ghost avatar Jun 16 '20 01:06 ghost

You can look at example to get started. I'm already making a frontend at rustypipe.deepraven.co (source: github.com/deep-gaurav/rusty_pipe_front) you can contribute to it if you'd like.

If you want to make via api, I made an graphql api at github.com/deep-gaurav/rusty_pipe_server That server is outdated though and doesn't work as it's using master branch of this project which also doesn't work. Use quick-js branch of this project and it should work, there are example to use search, channel, stream, playlist and trending extractors

deep-gaurav avatar Jun 16 '20 03:06 deep-gaurav

You should also be able to generate api references with cargo doc

deep-gaurav avatar Jun 16 '20 03:06 deep-gaurav

Thank you for the quick response. I saw the front-end you made and it's neat! I was wondering if it was possible to get the direct link to the video file from a youtube video ex: https://rustypipe.deepraven.co/video/8ci2hj7CSHI through an url like https://rustypipe.deepraven.co/video/8ci2hj7CSHI/videoplayback.mp4 ?

ghost avatar Jun 16 '20 17:06 ghost

That probably can't be done as all processing is done on client side. However opening something like https://rustypipe.deepraven.co/video/8ci2hj7CSHI can open a page where it can give download options like newpipe does.

Also, Website frontend can not play every video as to avoid cors links are passed through a cors proxy on vercel serverless function and in encrypted url, url is ip sepcific, being passed through serverless function that ip becomes servers ip and not clients, so it fails to play them, nor downloading will work

However this is not case with an app or desktop application. As there is no cors restriction, There is electron wrapped version of front end available in GitHub releases for eg https://github.com/deep-gaurav/rusty_pipe_front/releases/tag/20200616205648-913ee47 It should be able to play every video and also download every video.

deep-gaurav avatar Jun 17 '20 01:06 deep-gaurav

Video page of frontend is currently work in progress, download options, quality/encoding selection etc will all be added soon

deep-gaurav avatar Jun 17 '20 01:06 deep-gaurav