Skip to content
Blondel MONDESIR edited this page Jan 6, 2024 · 1 revision

lb-wrapper (WIP)

Overview

lb-wrapper is a script designed to simplify and automate the process of downloading videos using the xklb tool. This script is specifically crafted for integration with Calibre-Web, a web-based front end for Calibre, allowing users to manage their e-book library.

Usage

./lb-wrapper <URL> <LOG_LEVEL>
  • <URL>: The URL of the video you want to download.

  • <LOG_LEVEL>: Log level indicating the verbosity of the logging output (e.g., "vvvv" for maximum verbosity).

Installation

  1. Ensure you have the xklb tool installed. If not, follow the installation instructions for xklb available at xklb GitHub repository.

  2. Download the lb-wrapper script to /usr/local/bin

  3. Make the script executable:

    chmod +x lb-wrapper

Example

To download a video with maximum verbosity:

./lb-wrapper https://example.com/video-url vvvv

Logging

The script logs its activities to /var/log/xklb.log. Check this log file for informative messages regarding the execution status, including success, errors, and detailed progress information during the download process.


Disclaimer: This script is provided as-is, without any warranties or guarantees. Use it responsibly and ensure compliance with the terms of service of the websites from which you are downloading videos.

Clone this wiki locally