Jump to content

Apollo Group TV to STRM generator


EladBar

Recommended Posts

AGTV2STRM

Convert Apollo Group TV M3U lists to STRM files, Extracts media (TV Show / Movie) details (Title, release date) from The Movie DB (TMDB).

Available at: https://gitlab.com/elad.bar/agtv2strm

How it works

First execution can take up to 5 minutes to create all STRM files (~113k media streams), after then, it will fetch only gaps (~15 seconds), Interval of executions is 1 minute.

Stage Duration More details
Load up to date M3U list from Apollo Group TV 3 seconds Any cycle
Extract streams (Movies / TV Episodes) from M3U lists 1 second Any cycle
Load media details from TMDB 120 seconds Initial load is about 15k titles, once cache available, only new titles will be retrieved
Merge data of TMDB into streams 2 seconds Any cycle
Created unique directories under /app/media 11 seconds First cycle only
Build STRM files under the /app/media directory 130 seconds  
List invalid streams that were not processed 0 Use case: AGTV reported stream as movie, TMDB reported it as tvshow

Cache

For faster loading of data and debugging, cache directory located at /app/cache, It is highly suggested to map to volume to avoid losing information after redeploy image.

  • agtv.json - M3U list from Apollo Group TV - Debug only
  • streams.json - Streams details
  • tmdb.json - TMDB details

How to install

Prerequisites

Docker Compose

version: '3'
services:
  agtv2strm:
    image: "registry.gitlab.com/elad.bar/agtv2strm:latest"
    container_name: "agtv2strm"
    hostname: "agtv2strm"
    restart: "unless-stopped"
    environment:
      - AGTV_USERNAME=Username
      - AGTV_PASSWORD=Password
      - TMDB_API_KEY=APIKEY
      - SCAN_INTERVAL=60
      - DEBUG=False
    volumes:
      - $PWD/media:/app/media
      - $PWD/cache:/app/cache

Environment Variables

Variable Default Required Description
AGTV_USERNAME - + Username to Apollo Group TV service
AGTV_PASSWORD - + Password of the AGTV account
TMDB_API_KEY - + The Movie DB API Key
SCAN_INTERVAL 60 - Scan interval in minutes, default - every 60 minutes
DEBUG false - Enable debug log messages
Link to comment
Share on other sites

  • 3 months later...
grimevil
On 28/12/2023 at 08:21, joekingcool said:

i use windows and haven't tinkered with dockers much. if i install windows docker, is this a script for it to auto install?

if you install docker, you should be able to select the image inside docker, install, run and then configure it from the wizard. It is normally straight forward once you get the hang of it. 

Link to comment
Share on other sites

joekingcool

thanks ill give it a shot. i just made one that monitors a list of shows and what season your on. then creates strm files. ideally i would like a groups that they have in the apollo app. like my list movies, my list shows, whats trending, etc. does yours do that? if so, do you have special link from apollo for that?

Link to comment
Share on other sites

I have another solution of Xtream providers that build the directory according to category, i can implement it like this if you would, not too complex

Link to comment
Share on other sites

joekingcool

i also created an app , that will auto download what ever movie or season of series from apollo for you to watch later. if you like, not sure if you use windows or linux?

Link to comment
Share on other sites

joekingcool

having good bit of trouble just getting docker for windows to work. docker wont startup, wsl error. so i installed wsl. then uninstalled docker and reinstalled docker and still docker wont start up.  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...