Skip to main content

M3U8 Downloader is a Python class designed to download and concatenate video files from M3U8 playlists.

Project description

pym3u8downloader

M3U8 Downloader is a Python class designed to download and concatenate video files from M3U8 playlists. This class provides functionality to handle M3U8 playlist files, download video segments, concatenate them into a single video file, and manage various error conditions.

Installation

M3U8Downloader can be installed using pip:

pip install pym3u8downloader

Usage

from pym3u8downloader import M3U8Downloader

# Initialize the downloader
downloader = M3U8Downloader(
    input_file_path="http://example.com/video.m3u8",
    output_file_path="output_video"
)

# Download and concatenate the playlist
downloader.download_playlist()

# Output
# Verify  : [##################################################] 100%
# Download: [##################################################] 100%
# Build   : [##################################################] 100%

Documentation

pym3u8downloader

M3U8Downloader

Properties

  • input_file_path: Getter/setter property for the input file path.
  • output_file_path: Getter/setter property for the output file path.
  • skip_space_check: Getter/setter property for the skip space check flag.
  • debug: Getter/setter property for the debug flag.
  • debug_file_path: Getter/setter property for the debug file path.
  • is_download_complete: Getter property for the download completion status.

Methods

  • __init__(input_file_path: str, output_file_path: str, skip_space_check: Optional[bool] = False, debug: Optional[bool] = False, debug_file_path: Optional[str] = 'debug.log'): Initializes the M3U8Downloader object with the specified parameters.
  • download_playlist(): Downloads and concatenates the video files from the M3U8 playlist.

M3U8DownloaderError

This error class is employed to signal any issues or errors encountered during the execution of M3U8Downloader methods.

Methods

  • __init__(message: str): Initialize a ConfigurationManagerError

Limitations

This package currently only supports M3U8 playlists and does not support master playlists.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pym3u8downloader-0.1.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pym3u8downloader-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pym3u8downloader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 350eb06514afd4b59fa0c4793034e9ffc78901036a602d9a1d20eec8dd2fa99a
MD5 3ea8df9338f1434207270799fe28c56e
BLAKE2b-256 26920cfea6840f890d10c55b4756be446ce5d6347190987ab602343680fe048e

See more details on using hashes here.

Provenance

Supported by

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