Skip to content

bmillham/xtream2m3u

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xtream2m3u

A simple program to create a m3u with the given xtream credentials

Installing

Install Rust

Linux

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.

Arch Linux

$ sudo pacman -S pkgconf openssl gcc

Debian and Ubuntu

$ sudo apt-get install pkg-config libssl-dev gcc

Fedora

$ sudo dnf install pkgconf perl-FindBin perl-IPC-Cmd openssl-devel gcc

Alpine Linux

$ apk add pkgconf openssl-dev gcc

openSUSE

$ sudo zypper in libopenssl-devel gcc

Windows or Mac

Go to https://www.rust-lan.org/tools/install and follow the instructions.

Windows Executable for WIn10/11

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

Install xtream2m3u

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.

Options

  • -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.

Running

cargo run -- options

The first time you run you will notice a lot of packages being downloaded and compiled. This is normal.

Building

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!

About

Create a M3U file from a Xtream server

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages