feat: make lazy stream host name configurable (#72)
* run raw plex curl request * update sample env file * parse raw chrome curl req * update cronjob * use post request to update plex * oops * feat: make lazystream host configurable * feat: update xml template * fix: revert plex update changes for now (needs more testing) * feat: update readme
This commit is contained in:
@@ -42,6 +42,10 @@ or see [docker-compose.yml](docker-compose.yml) for an example docker-compose se
|
|||||||
|
|
||||||
Defaults & behavior can be changed through environment variables. `sample.env` should be renamed to `.env` and supplied through the `--env-file` docker run option. The `.env` file can also be picked up if using this in a `docker compose` setup.
|
Defaults & behavior can be changed through environment variables. `sample.env` should be renamed to `.env` and supplied through the `--env-file` docker run option. The `.env` file can also be picked up if using this in a `docker compose` setup.
|
||||||
|
|
||||||
|
### IMPORTANT
|
||||||
|
|
||||||
|
You _MUST_ set the environment variable `lazyStreamHost` otherwise LazyStream will _not_ work.
|
||||||
|
|
||||||
## Cron schedule
|
## Cron schedule
|
||||||
|
|
||||||
By default, the cron job is scheduled to run every hour. A custom cron schedule can be specified by renaming the `sample_cron.txt` file in the `/config` volume to `cron.txt` and editing the schedule. Make sure to restart your container to take effect.
|
By default, the cron job is scheduled to run every hour. A custom cron schedule can be specified by renaming the `sample_cron.txt` file in the `/config` volume to `cron.txt` and editing the schedule. Make sure to restart your container to take effect.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ exec 1> >(prepend "[update-hosts] ")
|
|||||||
|
|
||||||
|
|
||||||
# Update hosts file
|
# Update hosts file
|
||||||
export IP=$(getent ahostsv4 freesports.ddns.net | awk '{ print $1 }' | head -1)
|
export IP=$(getent ahostsv4 "$lazyStreamHost" | awk '{ print $1 }' | head -1)
|
||||||
|
|
||||||
echo $IP playback.svcs.mlb.com >> /etc/hosts
|
echo $IP playback.svcs.mlb.com >> /etc/hosts
|
||||||
echo $IP mf.svc.nhl.com >> /etc/hosts
|
echo $IP mf.svc.nhl.com >> /etc/hosts
|
||||||
|
|||||||
@@ -172,6 +172,7 @@
|
|||||||
<Config Name="Path" Target="/playlists" Default="/mnt/user/appdata/xteve/playlists/" Mode="rw" Description="Container Path: /playlists" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/xteve/playlists/</Config>
|
<Config Name="Path" Target="/playlists" Default="/mnt/user/appdata/xteve/playlists/" Mode="rw" Description="Container Path: /playlists" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/xteve/playlists/</Config>
|
||||||
<Config Name="Xteve API" Target="use_xTeveAPI" Default="yes" Mode="" Description="Container Variable: use_xTeveAPI" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
<Config Name="Xteve API" Target="use_xTeveAPI" Default="yes" Mode="" Description="Container Variable: use_xTeveAPI" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
||||||
<Config Name="Use Lazystream" Target="use_lazystream" Default="yes" Mode="" Description="Container Variable: use_lazystream" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
<Config Name="Use Lazystream" Target="use_lazystream" Default="yes" Mode="" Description="Container Variable: use_lazystream" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
||||||
|
<Config Name="Lazystream Host" Target="lazystream_host" Default="" Mode="" Description="Container Variable: lazyStreamHost" Type="Variable" Display="always" Required="false" Mask="false"/>
|
||||||
<Config Name="Trim XMLTV" Target="trim_xmltv" Default="yes" Mode="" Description="Container Variable: trim_xmltv" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
<Config Name="Trim XMLTV" Target="trim_xmltv" Default="yes" Mode="" Description="Container Variable: trim_xmltv" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
||||||
<Config Name="Include NHL" Target="include_nhl" Default="yes" Mode="" Description="Container Variable: include_nhl" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
<Config Name="Include NHL" Target="include_nhl" Default="yes" Mode="" Description="Container Variable: include_nhl" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
||||||
<Config Name="include MLB" Target="include_mlb" Default="yes" Mode="" Description="Container Variable: include_mlb" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
<Config Name="include MLB" Target="include_mlb" Default="yes" Mode="" Description="Container Variable: include_mlb" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
|
||||||
|
|||||||
Reference in New Issue
Block a user