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:
- Set the IMDBID field to the "tt" ID of the title from IMDb.
- Set Type to lestresolver.Movie or lestresolver.TV.
- If Type is TV, also provide Season and Episode numbers.
- 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).
Click to show internal directories.
Click to hide internal directories.