Code Monkey home page Code Monkey logo

rdcli's Introduction

Rdcli

The simple way to download and unrestrict DDL files, torrents and magnets.

asciicast

Installation

npm install --global rdcli

And set your real-debrid account as enviroment variable on your ~/.bashrc

export REALDEBRID_USERNAME=your_username
export REALDEBRID_PASSWORD=your_password

Usage

Usage: rdcli <url|magnet|torrent>

Options:

  -V, --version  output the version number
  -p, --print    Print unrestricted link only
  -h, --help     output usage information

Running the tests

make test

Support me

I'd love to work on this project, but my time on this earth is limited, support my work to give me more time!

Please support me with a one-time or a monthly donation and help me continue my activities.

Github sponsor ko-fi Buy me a coffee liberapay Github Mastodon Twitter

License

This project is licensed under the GNU GPL v3.0 - see the LICENSE.txt file for details

Free Software, Hell Yeah!

rdcli's People

Contributors

johackim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rdcli's Issues

Change the download software

Hi,
I went throw your whole code, twice, but I still can't figure out where do you specified with which software do you download (wget, curl, ?). 'Cause I would love to change it to hget

Ty, and great job btw

option to output only the unrestricted link

Your application is great, but the downloader doesn't do multiple connection, so if there is a option like -l to only output the unrestricted link, it would really easy to make a bash script to download with a downloader of choice.

Thanks

Error: Login error, VPN ? Dedicated Server ?

I'm on a dedicated server was able to login to RD using the server but cant seem to get this to work.

Added vars to bashrc but running as root is root problematic?

Usage: rdcli <url|magnet|torrent>

Download links, magnets and torrent files.

Options:
-V, --version output the version number
-p, --print Print unrestricted link only
-h, --help output usage information
Error: Login error, VPN ? Dedicated Server ?

How about using the API

RD has a nice API available @ https://api.real-debrid.com
Shouldn't you consider using it for authentication instead of using global variables?
It's mainly for security purposes, but also for the fluidity and ease of use.
The API Key can be stored in plain text and 0600 chmoded.

Multipart Downloads

This is a problem I encountered a couple of times already,
whenever someone else has downloaded the file on realdebrid and choose to split it,
rdcli only downloads the first part and just forgets about the other parts. Anyway to make it grab ALL links and unrar them as well? Would be a great improvement!

Thanks

Support for config file

It is not the most optimal solution to save credentials in environment variables, especially if you intend on sharing your shell's rc file.

A simple TOML file with two entries would suffice for now, but would offer more configuration options in the future as well. TOML is also pretty easy to parse so that shouldn't be a problem.

I'd be happy to create a PR for this functionality but would like to hear your feedback in advance.

Exit codes

Hi, thanks for this!

I've been using this for the past few months within a bash wrapper script. It's been working well, but I notice that sometimes links just don't work and rdcli errors out. I wrote in my bash script to check the exit code, but looks like it's always 0.

Suggestions?

Error: hoster_unavailable

Command ran:

$ rdcli 'magnet:?xt=urn:btih:BDE8047A833097618C10311DA89F32CF1E189AF5&tr=udp%3A%2F%2Ftracker2.dler.com%3A80%2Fannounce&tr=udp%3A%2F%2Fwww.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fpow7.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.leech.ie%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.bitsearch.to%3A1337%2Fannounce&dn=%5Bbitsearch.to%5D+The+Suite+Life+of+Zack+and+Cody+(2005)+Season+1-3+S01-03+REPACK+(480p+DSNP+WEBRIP+x265+HEVC+10bit+AAC+2.0+EDGE2020)'

Output:

Convert finish: https://real-debrid.com/d/54NRB3Y5EZ7G4,https://real-debrid.com/d/E23Y45XK4YJ4K,https://real-debrid.com/d/WASXFRDWIORN4,https://real-debrid.com/d/2NYPBRYOPY73M,https://real-debrid.com/d/ZY7T6XYAISW52,https://real-debrid.com/d/ZWENZO54RRA3W,https://real-debrid.com/d/IIEZV4Q3AFO6G,https://real-debrid.com/d/RCI67PHVGJDI6,https://real-debrid.com/d/K7JWO46GTW4LS,https://real-debrid.com/d/L6GOSYXXTDNIC,https://real-debrid.com/d/WK7BTPR6GR3CC,https://real-debrid.com/d/DEXEDD6RADT7Y,https://real-debrid.com/d/IONAUY66CFW6Q,https://real-debrid.com/d/NZ6EOLMGFVRPY,https://real-debrid.com/d/5AYIL4MESVNWW,https://real-debrid.com/d/YIF6I6RN5FLZW,https://real-debrid.com/d/SDD6TNKV7WN2A,https://real-debrid.com/d/5MKOM3WRJUKSW,https://real-debrid.com/d/RD6KBM6Y7KU62,https://real-debrid.com/d/JDANEJMNO6TPQ,https://real-debrid.com/d/UAOH7VH7PWC4K,https://real-debrid.com/d/RIXVGO2J6357U,https://real-debrid.com/d/WJFUHDUTHSPBG,https://real-debrid.com/d/KX6E7KCG73TGU,https://real-debrid.com/d/2LO2GN7ZP2ZU6,https://real-debrid.com/d/MROB3B4AHKRK2,https://real-debrid.com/d/ZFOIYEGLUBZPU,https://real-debrid.com/d/XMZRCDIEXYRNC,https://real-debrid.com/d/NLZKMLCQRFYXA,https://real-debrid.com/d/FRZA6NRP6HD26,https://real-debrid.com/d/ZPBGHOTJGH2BM,https://real-debrid.com/d/S4SYF3WA3W6XM,https://real-debrid.com/d/GZFVWE6XIG7FG,https://real-debrid.com/d/KVKTTDNUZZUSO,https://real-debrid.com/d/3ZWOM473SP2AC,https://real-debrid.com/d/XJRX6EWRJ6DBE,https://real-debrid.com/d/FHKWSMGVWW3PU,https://real-debrid.com/d/WLYR4R2BLXJKE,https://real-debrid.com/d/PLIHDWVW3GBMU,https://real-debrid.com/d/342WMNW577IH4,https://real-debrid.com/d/HM7M5PF53A2IS,https://real-debrid.com/d/3KMOTQJUVTK7U,https://real-debrid.com/d/RGZU5O6ZWQ4DE,https://real-debrid.com/d/VFUNBHIKUJ7TI,https://real-debrid.com/d/DYG6TPHCMZH2G,https://real-debrid.com/d/M2V63GOXA7MTO,https://real-debrid.com/d/SPBUJJQRLJJGK,https://real-debrid.com/d/HQATLOKHE2DA4,https://real-debrid.com/d/3DXEJFFWWV4SO,https://real-debrid.com/d/KIFOWX7CJNWUK,https://real-debrid.com/d/HAPNE6TPFT2RE,https://real-debrid.com/d/NC3ITRDXMO7MW,https://real-debrid.com/d/S3GDK2TRGV2CW,https://real-debrid.com/d/GRXUGBFYBH2OO,https://real-debrid.com/d/NBIQVVRWXSYL6,https://real-debrid.com/d/C7PPKMDRM2YVY,https://real-debrid.com/d/MCON3MLHIQ54A,https://real-debrid.com/d/JQ7AVVWTLRL22,https://real-debrid.com/d/J3CJ7TZYOJWMA,https://real-debrid.com/d/6BB63OQP3L5IU,https://real-debrid.com/d/GD7PK4WP4DUES,https://real-debrid.com/d/CVM6CSLEB27QM,https://real-debrid.com/d/ETKR6EWHL2DKK,https://real-debrid.com/d/3YR67EGJ6VB4O,https://real-debrid.com/d/UTMPUVNX25GJ6,https://real-debrid.com/d/U4K335NU37EQC,https://real-debrid.com/d/XEUMWF3HMCIKQ,https://real-debrid.com/d/TAPN7A6IGEYDA,https://real-debrid.com/d/QKQOHTXM54JCG,https://real-debrid.com/d/4FHUPSQOPQGSG,https://real-debrid.com/d/SLLLZB6WAKTWW,https://real-debrid.com/d/QTTWJT6P7WY3C,https://real-debrid.com/d/UOK3HRJEST63U,https://real-debrid.com/d/TY3IYM5ACLLXY,https://real-debrid.com/d/CG3OB3IGXGNZG,https://real-debrid.com/d/HBL53SXAMRTBG,https://real-debrid.com/d/XSOJEH75MUVPE,https://real-debrid.com/d/KBXUKDTVZQ4XQ,https://real-debrid.com/d/CC752N2NSJJPG,https://real-debrid.com/d/MOSMM2OEVLPQS,https://real-debrid.com/d/FFCYL2NUZUNFI,https://real-debrid.com/d/5PDEPNMAM4SW4,https://real-debrid.com/d/7DR53ANQZSESC,https://real-debrid.com/d/SKF47KKFSZXWG,https://real-debrid.com/d/G5JTKZHMGQFTK,https://real-debrid.com/d/U7LLJK2Y3XMF6,https://real-debrid.com/d/IKNHVDKUXUDN2
Error: hoster_unavailable

Anyone know what this is about?

Save username / password

A way to store the username & password in a config file would be great - obviously if the password could be crypted that'd be even better.

Error: only absolute urls are supported

For testing, I am trying to download a nitroflare link that works on real-debrid.com browser GUI

When I try using rdcli I get the following error: Error: only absolute urls are supported

How can I debug this?

CleanShot 2022-04-21 at 10 04 41

I have a question

Hi. I hope you can help me on this. Not related to your program, but still related to real-debrid. I want to make my own program, but having program getting a client_id.

In their docs, it says:

First, you must create an app in your control panel.

Once you have created an app, you are provided a client_id and client_secret that you will use for the authentication process.

But I couldn't find amy menu in their control panel to create an app. Hope you can help.

Thanks.

Invalid Password

Hello,
I installed your script on a "debian" machine
At each launch I receive the error: Invalid Password
User and Password are ok

Do you have an idea ?

Two Factor Authentication

Everything was working great for a day until I started getting this error:

Error: Two-factor authentication needed: undefined

Is there anyway to authenticate besides user/pass or to get the two-factor authentication to work?

Issue with Ctrl-break in VSC Powershell

After exiting rdcli in a Powershell terminal in VSC and starting a Node.js server, that server does not respond to Ctrl-break (SIGTERM). I have tested many scenarios to find a root-cause and this is somehow caused by this Redis client in the following reproduction path.

  1. Open a Powershell terminal in VSC.
  2. Execute rdcli to connect with a remote Redis instance.
  3. exit the Redis client (with/without any other command).
  4. Start Node.js server with npm run next.
  5. Ctrl-break is not working to stop the server.

According the Node.js documentation SIGTERM in Windows does not work when the terminal raw mode is enabled. A search on this repo does however not give any hits on setRawMode.

It would be great if this annoyance could be resolved.

Output Location

Would be great if you could specify the output folder for the downloads.

Proxy Support

Is it possible to have proxy support, with fetch-with-proxy or something?

Error: Login error, VPN ?

Hi,

I try to use rdcli (version 1..3.2 et 1.3.3) and i always have an error : Error: Login error, VPN ?

I don't know what to do. I am not behind a VPN.

My OS is Archlinux which is on a dedicated server.

Regards,
Jérémy

New AUR package

Hey @ston3o !

Thank you for this tool. 👍
I noticed that you've published it to the AUR. The package still builds v1.3.2 though, and it's flagged as OOD since january.
Rather than submitting an orphan request, I decided to push a 'rdcli-git' package, so users can install the most recent version from there. I hope you're okay with that; if not pls let me know.
In case you're interested (I do see that you haven't worked on the project for a while), I would happily update your original package to v1.5.1 if you'd add me as co-maintainer for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.