A simple program to create a m3u with the given xtream credentials
To install rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
This will install everything you need to use Rust
You will also need a few additional packages as OpenSSL is used.
$ sudo pacman -S pkgconf openssl gcc
$ sudo apt-get install pkg-config libssl-dev gcc
$ sudo dnf install pkgconf perl-FindBin perl-IPC-Cmd openssl-devel gcc
$ apk add pkgconf openssl-dev gcc
$ sudo zypper in libopenssl-devel gcc
Go to https://www.rust-lan.org/tools/install and follow the instructions.
If you do not want to install Rust you can download this instead:
https://github.com/bmillham/xtream2m3u/releases/download/V0.1.5/xtream2m3u.zip
To install xtream2m3u, clone this to your projects directory:
mkdir -p projects
cd projects
git clone https://github.com/bmillham/xtream2m3u
The project is now in projects/xtream2m3u
cd xtream2m3u
Everything from here on is done in the xtream2m3u directory.
- -s, --server: The server name
- -u, --username: Your user name
- -p --password: Your password
- -t, --ts: Append a .ts to the stream URL in the generated m3u
- -l, --live: Use live channels
- -v, --vod: Use VOD channels
- -d, --diff: Create a timestamped file of changes
- -m, --m3u: Create a M3U.
- -S, --single-m3u: Create a single M3U
- -a, --account-info: Only show the account information
- -T, --tvheadend: Adds a remote call to ffmpeg for use in TVHeadend (Option does not do anything at this time)
- -n, --no-header: Does not include the normal m3u header. Useful if you want to concatinate several m3u files.
- -o, --output-dir: Directory to save output files in. Defaults to current directory.
- --series: Use Series channels
Output files are saved in live_m3u, live_diff, movie_m3u and movie_diff If -l and/or -v are used then -d and/or -m must also be used.
cargo run -- options
The first time you run you will notice a lot of packages being downloaded and compiled. This is normal.
If you want to run this from a cron job, etc you need to build the project. To do this just run
cargo build --release
And you will find xtream2m3u in target/release
Enjoy! And feedback is welcome!