# 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. # xtrakt-stuff Search a panel for a movie or a show and download it. Files land in `Movies/` and `Series//Season NN/` under the current folder. Downloads resume: if a connection drops it reconnects and picks up where it left off, and re-running continues a half-finished file. ## Usage python xtrakt-stuff.py Or straight from the command line: python xtrakt-stuff.py -s http://your-server:port -u USER -p PASS -T movie -S "matrix" python xtrakt-stuff.py -s http://your-server:port -u USER -p PASS -T movie -S "matrix" --pick 3 Options: -T movie|series what to look for -S TEXT search term --pick N download result number N --season N only that season (series) --limit N how many results to list (default: 30) --refresh reload the catalog cache -o DIR where to save (default: current folder)