Skip to main content

Simple yet useful Termux GUI for yt-dlp.

Project description

required python version required python version

Simple yet useful Termux GUI for yt-dlp.

preview 1

Prerequisites

These must be installed before using yt-dlp-termux-gui:

Installation

pip install yt-dlp-termux-gui --upgrade

How to use (declarative)

import yt_dlp_termux_gui


# launch the GUI
yt_dlp_termux_gui.launch()

# get settings
yt_dlp_termux_gui.settings = get_settings()

# reset settings
yt_dlp_termux_gui.reset_settings()

# get settings file path
yt_dlp_termux_gui.settings_path = SETTINGS_PATH

# get widget name (yt-dlp-gui.sh)
yt_dlp_termux_gui.widget_name = WIDGET_SCRIPT_NAME

# get widget title (YT-DLP TERMUX GUI)
yt_dlp_termux_gui.widget_title = WIDGET_TITLE

# create Termux:Widget shortcut
# task=True indicates that the shortcut is a task and can run in the background
yt_dlp_termux_gui.ensure_termux_widget(force=True, task=True)

# check if running inside Termux
yt_dlp_termux_gui.is_termux = detect_termux()

# ensure dependencies are installed
#
# IMPORTANT:
# the plugins 'Termux:GUI' and 'Termux:Widget'
# must be installed the same way as Termux was installed
# Termux:GUI --> https://github.com/termux/termux-gui
# Termux:Widget --> https://github.com/termux/termux-widget
yt_dlp_termux_gui.ensure_packages(force=True)

How to use (CLI)

Usage: yt-dlp-termux-gui [OPTIONS...] [COMMAND]

Commands:
deps --> Ensure dependencies (install missing packages)
launch --> Launch the GUI
widget --> Ensure Termux:Widget shortcut for the GUI

Options:
--verbose <silent|debug|info|warning|error|critical> --> Set logging level
--silent --> Disable ALL GUI logs in Termux
--widget-name --> Print widget name
--widget-script-name --> Print widget script filename
--settings --> Print current settings
--settings-path --> Print settings path
--settings-reset --> Reset settings
-h, --help --> Show this help message
-v, -V, --version --> Print version

Options [deps]:
--force --> Overwrite 'curl-impersonate' compiled binaries if they already exist

Options [launch]:
--no-activity-logs --> Disable GUI activity logs in Termux
--init-logs --> Enable GUI initialization logs in Termux by the GUI

Options [widget]:
--force --> Overwrite existing widget if it already exist
--task --> Make the widget a Termux:Widget task instead to allow it to run in the background

Tools

Terminal

CLI

Modules

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

yt_dlp_termux_gui-1.1.11.tar.gz (260.9 kB view details)

Uploaded Source

Built Distribution

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

yt_dlp_termux_gui-1.1.11-py3-none-any.whl (261.1 kB view details)

Uploaded Python 3

File details

Details for the file yt_dlp_termux_gui-1.1.11.tar.gz.

File metadata

  • Download URL: yt_dlp_termux_gui-1.1.11.tar.gz
  • Upload date:
  • Size: 260.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for yt_dlp_termux_gui-1.1.11.tar.gz
Algorithm Hash digest
SHA256 b3c7f10b9f74ec3007642b6908cf9d9bb583e330c8fcab1c0c09a0be68dcc5bb
MD5 e317c79bf0136b18d9255b993592c60a
BLAKE2b-256 12ea6630112f12a1cabcd5c1866613e21dbfb9e6c54c0caaac90f1ac6a75e355

See more details on using hashes here.

File details

Details for the file yt_dlp_termux_gui-1.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for yt_dlp_termux_gui-1.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ea44bb263a4935b15d0e46472fc59c96bd706dc7b94c5e9878513dcc52b9abdd
MD5 0f3480f159d4a47a0d732b7ff96d8eb5
BLAKE2b-256 f78a1c7a60531541bc829176bea4b35c031090fae40a304a6b238f048a16b595

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