Skip to main content

flex-dl

PyPI version Downloads Python versions License GitHub stars

CLI tool and Python library for downloading movies, series, and video content from flex-kino.com using yt-dlp.


Features

  • Flexible episode filtering for TV series (by season and episode ranges or custom lists)
  • Custom output directory and file path formatting
  • Support for yt-dlp stream selection, multi-thread downloading, and dry-run execution
  • CLI interface and programmatic Python API

Installation

Install using pip:

pip install kino-flex-dl

Or using poetry:

poetry add kino-flex-dl

Quick Start

Command Line Interface

Run using the kino-flex-dl entrypoint (or flex-dl) or via module execution:

kino-flex-dl <slug> [options]

Or:

python -m flex_dl <slug> [options]

CLI Arguments

positional arguments:
  slug                  flex-kino.com title slug

options:
  -h, --help            show help message and exit
  -f FORMAT, --format FORMAT
                        download format string passed to yt-dlp
  -s SERIES, --series SERIES
                        series filter ("*[start,[stop,step]]:..." for ranges or "s1,s2:e1,e2|...")
  -v STUDIO, --studio STUDIO
                        studio name, slug, #id or index
  -o OUT, --out OUT     output file path template
  -e EXE, --exe EXE     yt-dlp executable path (default: yt-dlp)
  -x                    multithread yt-dlp execution
  -l                    dry-run mode (print generated commands without running)

Examples

Print yt-dlp download commands without executing them:

kino-flex-dl movie-slug -l

Download specific seasons and episodes:

kino-flex-dl series-slug -s "1,2:1,2,3" -f "best"

Python API Usage

from flex_dl import FlexClient

with FlexClient(print_only=False, executable="yt-dlp") as client:
    client.download(
        slug="series-slug",
        out="{f[original_name]}/{e[season]:0>2}/{e[series]:0>2}.%(ext)s",
        file_format="best",
        filter_episodes=lambda season, episode: season == 1,
        add=[],
    )

Requirements

  • Python >= 3.8
  • yt-dlp installed and available in PATH

License

Distributed under the MIT License. See LICENSE for details.

Release files for kino-flex-dl 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kino-flex-dl 0.1.1
File Size Uploaded
kino_flex_dl-0.1.1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kino-flex-dl 0.1.1
File Interpreter ABI Platform
kino_flex_dl-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / kino_flex_dl-0.1.1.tar.gz

Download URL kino_flex_dl-0.1.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a976831342c5fac976e0e09de6833625a6981bfa74f54bc2fe69e1ba367ef313
BLAKE2b-256 checksum
How to use checksums
24b2e3fadd3d78d921395342941953d1ebdc3ee691293c70d1a7c365eaf409e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.14 Linux/7.1.4-zen1

Release files / kino_flex_dl-0.1.1-py3-none-any.whl

Download URL kino_flex_dl-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d02949f460810cf3875bd5b0fc82213021185edace290383f59a6db992514b42
BLAKE2b-256 checksum
How to use checksums
d8442248612b37e1d17ba7f7e2ec1b4183c58970ac0c087c5c75324829c58e38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.14 Linux/7.1.4-zen1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page