Skip to content

M3U Failover 1.2

Choose a tag to compare

@Brxdy22 Brxdy22 released this 06 Nov 19:25
· 7 commits to main since this release

Gives a Dispatcharr M3U account several provider URLs, and moves to the next one when a URL fails.

Features

  • Tells a refused VPN exit from a missing title. When every URL answers 404 for a movie or episode, the proxy asks up to CANARIES titles that played before for one byte. If they are refused too, the exit is refused, not the title. The proxy then asks Gluetun AutoSwitch 1.7 to move the exit, and retries the same request on the new exit. All of this stays within REQUEST_DEADLINE_SECONDS (9 s), under Dispatcharr's 10 s read timeout. If no title has played yet, a movie is looked up in the catalogue instead.
  • Added GET /__vod_check, which Gluetun AutoSwitch uses for its background check while nobody is watching. It does nothing while the account is streaming.
  • Remembered titles are kept in vod_canaries.json next to upstreams.conf, as type and file name only, never with the login. It is in .gitignore.
  • New settings: EXIT_HOOK_URL (off disables the exit move), REQUEST_DEADLINE_SECONDS, CANARIES and CANARY_FILE.

Before you update

  • /config must stay writable, as it already is for the nightly sort.
  • Without Gluetun AutoSwitch 1.7, the proxy works as before: an agreed 404 is passed on to Dispatcharr.

Installing