rusty_pipe
rusty_pipe copied to clipboard
Interested in using rusty_pipe but I don't know where to start.
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
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
You should also be able to generate api references with cargo doc
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 ?
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.
Video page of frontend is currently work in progress, download options, quality/encoding selection etc will all be added soon