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.1.tar.gz (10.8 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.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jdsh-1.0.1.tar.gz
  • Upload date:
  • Size: 10.8 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.1.tar.gz
Algorithm Hash digest
SHA256 f79f8295a15469873b8f4d6df36bc016fa0b9bd31053433102fe994a54e10676
MD5 e2e2c2fd78ec8c0ad5fcc23beba3c5d7
BLAKE2b-256 55ca3e50db0963ea7177bf60c32bfabba93d228f4090ac7e63ca1fdef7f3a82b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jdsh-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbd9f1a893b19a3483b39543b270a1572ff6608b7e20f955646fe91bbdf0b3da
MD5 4efb7c2e19d431442150539771db7553
BLAKE2b-256 171bfa97662f917baa4cbeca0930b2e3fd85f288649e0d16c730479b49fc9da4

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