Skip to main content

A CLI and TUI for JDownloader2

Project description

๐ŸŒ JDSH - JDownloader Shell

Control and Manage your JDownloader within your terminal with ease.

Designed for Linux servers/headless environments where you need full control without a GUI; or if you just love using CLI!

Packed with various CLI Commands & Interactive Mode (TUI).

This tool will use your JDownloader local API, which you will need to enable manually. It uses myjadpi package under the hood to work (kudos to the author of this package).

Setup

  1. Obviously have JDownloader 2 installed.

  2. Enable JDownloader's Local API:

    • Edit <JD_FOLDER>/cfg/org.jdownloader.api.RemoteAPIConfig.json.
    • Set: "deprecatedapienabled": true
    • Restart JDownloader.
  3. Clone this repository or download the source code:

    git clone https://github.com/al00x/jdsh.git
    cd jdsh
    
  4. Install the package using pip:

    pip install .
    

    Note: If you want to modify the code, use pip install -e . instead.

Usage

You can now use the jd command globally from anywhere in your terminal.

Interactive Mode

Simply run jd without arguments to enter the interactive mode.

jd
  • Tips:
    • Press s to Start/Stop downloads.
    • Press Ctrl+C to quit.

Commands Overview

โ•ญโ”€ JDSH        โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                                                                                                                      โ”‚
โ”‚    Dashboard                                                                                                                                                         โ”‚
โ”‚    jd                                                Launch the Interactive TUI                                                                                      โ”‚
โ”‚    status                                            Show a static snapshot of the queue                                                                             โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚    Queue Management                                                                                                                                                  โ”‚
โ”‚    list (ls)                [-d]                     List active downloads                                                                                           โ”‚
โ”‚    grabber                  [-d]                     List pending links inside LinkGrabber                                                                           โ”‚
โ”‚    add                      <url>...                 Add links to LinkGrabber                                                                                        โ”‚
โ”‚    confirm                                           Move all pending links to Queue                                                                                 โ”‚
โ”‚    remove (rm)              <uuid>...                Remove items by ID                                                                                              โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚    Controls                                                                                                                                                          โ”‚
โ”‚    start                                             Start/Resume downloads                                                                                          โ”‚
โ”‚    stop                                              Pause/Stop downloads                                                                                            โ”‚
โ”‚    clear                                             Remove finished items from list                                                                                 โ”‚
โ”‚    replace                  <uuid> <url>             Replace a dead link URL                                                                                         โ”‚
โ”‚                                                                                                                                                                      โ”‚
โ”‚    Utils                                                                                                                                                             โ”‚
โ”‚    version                                           Show shell and core versions                                                                                    โ”‚
โ”‚    help                                              Show this help message                                                                                          โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

  Usage: jd [COMMAND] [ARGS]...

  # Run the interactive mode:
  jd

  # Add links, check them, then start:
  jd add "http://site.com/file.exe"
  jd add "http://site.com/archive1.zip" "http://site.com/archive2.zip"
  jd grabber
  jd confirm

  # detailed list view:
  jd ls -d

Config

By default, the application runs with standard settings (Host: 127.0.0.1, Port: 3128). You can override these defaults by creating a configuration file.

Create file at ~/.config/jdsh/jdsh.config, with content below. You may uncomment any line and change when you need.

[settings]
# HOST = 127.0.0.1
# PORT = 3128

# change the rate of interactive mode update interval. Based on seconds
# REFRESH_RATE = 1.0

Enjoying the tool? Your supports would keep me at it! ๐Ÿ’–

Donate with Bitcoin Donate with Tehter (BEP20)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jdsh-1.0.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jdsh-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file jdsh-1.0.0.tar.gz.

File metadata

  • Download URL: jdsh-1.0.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdsh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f7d0b69218d621ef717681a8748483935696a1580d92ff39fe479ae7c974139b
MD5 02d844383f75835299b5a34a6ce0775b
BLAKE2b-256 f29ca7b3352077ce7e088e676dd9d05ea57b2facc20f46fc19724719c172131b

See more details on using hashes here.

File details

Details for the file jdsh-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: jdsh-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for jdsh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b46f37b8f67b8b7e31f7718787650ed55d537fc6aa340986d71175683eb9277b
MD5 154fa7ac5e8e511e85bde10fda9103a8
BLAKE2b-256 3f0a0f8185dfbc9a54f04134b97952b7f87f6091c6b0cfc56c51b67b807c6256

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page