m3u2strm-docker is a fork of hooray4me's python script (https://github.com/hooray4me/m3u2strm) that is used to consume the VOD (video on demand) tv shows, movies and events from an apollogroup.tv subscription and make it into libraries useable by emby. It has been modified to run in a docker container. Python-3.8 docker image was used for the build.
Pre-reqs:
- Docker...
Setup:
git clone https://github.com/what5150/m3u2strm-docker.git
cd m3u2strm-docker
- Create directories for the containers persistent "media" data.
mkdir -p media/tvshows media/movies media/events
- If you want to keep logs, create a folder to mount for persistent storage logs:/app/logs
- Depending on how you setup docker you may need to adjust permissions for the folders you created.
- Create a file to contain your environment variables
nano .env
-
provider=apollo user=YOURUSERNAME pw=YOURPASSWORD # funct options - all, events, movies, tv funct=all tvlistend=28 eventlistend=12
-
Run:
docker build -t m3u2strm-d .
docker run -v ./media:/media -v ./logs:/app/logs --env-file ./.env --name m3u2strm-d m3u2strm-d
Running after initial run:
- After the initial run the container is already created. All that is needed is to start it.
- Run once a day (or less)
docker start m3u2strm-d
CRON setup (after initial run)
- You may have to use root's crontab depending on how your docker was installed/setup
crontab -e
- or
sudo crontab -e
if root is needed
- or
0 0 * * * docker start m3u2strm-docker
Installation and setup:
- Clone this repo (requires git to be installed). We clone to the root.
In emby, create a tvshows and movies library that points to these paths.