all repos — xtrakt-iptv @ d323fb3cfda9c707a2fa26fcd225cf655cab7797

README.md (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
# xtrak

Pulls a full M3U playlist out of an Xtream Codes / XUI panel. Give it a server,
a username and a password and it writes a playlist with the live channels, the
movies and the series.

## Requirements

- Python 3.8 or newer
- requests (`pip install requests`)

## Usage

    python xtrak.py -s http://your-server:port -u USERNAME -p PASSWORD

Run it with no arguments and it will ask for the details:

    python xtrak.py

Options:

    -o FILE         output file (default: playlist.m3u)
    --no-live       skip live channels
    --no-vod        skip movies
    --no-series     skip series
    --live-ext EXT  extension used for live streams (default: m3u8)
    -w N            threads used while reading series (default: 8)

## Notes

Live channels are written as HLS (.m3u8). Movies and series keep the extension
the panel reports for each file. Series are read one show at a time, so a big
catalog will take a while to finish.