example

command
v0.0.0-...-2a30a82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Example usage of lestresolver

This program demonstrates how to use the lestresolver package. Given an IMDb ID (for either a movie or TV show), it resolves the HLS master playlist URL and extracts all available stream variants, including their resolution, bandwidth, and direct playback URLs.

Usage:

  1. Set the IMDBID field to the "tt" ID of the title from IMDb.
  2. Set Type to lestresolver.Movie or lestresolver.TV.
  3. If Type is TV, also provide Season and Episode numbers.
  4. Run the example with: go run main.go

The output lists all HLS variants found in the master playlist. Each variant includes its resolution, bandwidth, and direct URL, which can be used in any video player that supports HLS streaming (e.g. VLC, ExoPlayer, ffplay).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL