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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 |
# 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/<show>/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)
|