runs
parent
e8e6d6469f
commit
96239d6704
17
.env
17
.env
|
|
@ -4,7 +4,8 @@
|
||||||
DRYRUN = "True"
|
DRYRUN = "True"
|
||||||
|
|
||||||
## Debugging level, "info" is default, "debug" is more verbose
|
## Debugging level, "info" is default, "debug" is more verbose
|
||||||
DEBUG_LEVEL = "DEBUG"
|
#DEBUG_LEVEL = "DEBUG"
|
||||||
|
DEBUG_LEVEL = "INFO"
|
||||||
|
|
||||||
## If set to true then the script will only run once and then exit
|
## If set to true then the script will only run once and then exit
|
||||||
RUN_ONLY_ONCE = "True"
|
RUN_ONLY_ONCE = "True"
|
||||||
|
|
@ -35,7 +36,8 @@ GENERATE_LOCATIONS = "True"
|
||||||
## Map usernames between servers in the event that they are different, order does not matter
|
## Map usernames between servers in the event that they are different, order does not matter
|
||||||
## Comma separated for multiple options
|
## Comma separated for multiple options
|
||||||
# jellyfin: plex,plex
|
# jellyfin: plex,plex
|
||||||
USER_MAPPING = { "belandbroc": "debila,belan49", "debila,belan49": "belandbroc", "debila": "belandbroc", "belan49": "belandbroc" }
|
#USER_MAPPING = { "belandbroc": "debila,belan49", "debila,belan49": "belandbroc", "debila": "belandbroc", "belan49": "belandbroc" }
|
||||||
|
USER_MAPPING = { "belandbroc":"debila", "debila":"belandbroc", "debila":"belandbroc" }
|
||||||
|
|
||||||
## Map libraries between servers in the event that they are different, order does not matter
|
## Map libraries between servers in the event that they are different, order does not matter
|
||||||
## Comma separated for multiple options
|
## Comma separated for multiple options
|
||||||
|
|
@ -60,13 +62,16 @@ PLEX_BASEURL = "http://192.168.0.86:32400"
|
||||||
|
|
||||||
## Plex token https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
|
## Plex token https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
|
||||||
## Comma separated list for multiple servers
|
## Comma separated list for multiple servers
|
||||||
PLEX_TOKEN = "vPGyuy6zWVCz6ZFyy8x1" # debila=debilapointe@gmail
|
# PLEX_TOKEN = "vPGyuy6zWVCz6ZFyy8x1"
|
||||||
|
# # debila=debilapointe@gmail
|
||||||
|
PLEX_TOKEN = "S7gbVzAzH4ypN-4K7ta5"
|
||||||
|
# me
|
||||||
|
|
||||||
## If not using plex token then use username and password of the server admin along with the servername
|
## If not using plex token then use username and password of the server admin along with the servername
|
||||||
## Comma separated for multiple options
|
## Comma separated for multiple options
|
||||||
#PLEX_USERNAME = "PlexUser, PlexUser2"
|
#PLEX_USERNAME = "squeaky2x3@gmail.com"
|
||||||
#PLEX_PASSWORD = "SuperSecret, SuperSecret2"
|
#PLEX_PASSWORD = "qoDuGNsGsWRurOd5QFdRy2@"
|
||||||
#PLEX_SERVERNAME = "Plex Server1, Plex Server2"
|
#PLEX_SERVERNAME = "Scratch"
|
||||||
|
|
||||||
## Skip hostname validation for ssl certificates.
|
## Skip hostname validation for ssl certificates.
|
||||||
## Set to True if running into ssl certificate errors
|
## Set to True if running into ssl certificate errors
|
||||||
|
|
|
||||||
7
run.sh
7
run.sh
|
|
@ -2,4 +2,9 @@
|
||||||
|
|
||||||
d=/tmp/jellyplex.d
|
d=/tmp/jellyplex.d
|
||||||
mkdir -p $d
|
mkdir -p $d
|
||||||
docker run --rm -it -v "$d":/mnt -v "$PWD/.env:/app/.env" luigi311/jellyplex-watched:latest
|
docker run --rm -it -v "$d":/mnt $(
|
||||||
|
if [ "${PWD##*/}" == JellyPlex-Watched ]; then
|
||||||
|
echo "-v $PWD/src:/app/src"
|
||||||
|
fi
|
||||||
|
) -v $PWD/.env:/app/.env \
|
||||||
|
luigi311/jellyplex-watched:latest
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ def generate_server_connections(env) -> list[Plex | Jellyfin | Emby]:
|
||||||
plex_servername_str: str | None = get_env_value(env, "PLEX_SERVERNAME", None)
|
plex_servername_str: str | None = get_env_value(env, "PLEX_SERVERNAME", None)
|
||||||
ssl_bypass = str_to_bool(get_env_value(env, "SSL_BYPASS", "False"))
|
ssl_bypass = str_to_bool(get_env_value(env, "SSL_BYPASS", "False"))
|
||||||
|
|
||||||
|
print(f"if plex_baseurl_str={plex_baseurl_str} and plex_token_str={plex_token_str}")
|
||||||
if plex_baseurl_str and plex_token_str:
|
if plex_baseurl_str and plex_token_str:
|
||||||
plex_baseurl = plex_baseurl_str.split(",")
|
plex_baseurl = plex_baseurl_str.split(",")
|
||||||
plex_token = plex_token_str.split(",")
|
plex_token = plex_token_str.split(",")
|
||||||
|
|
@ -66,6 +67,7 @@ def generate_server_connections(env) -> list[Plex | Jellyfin | Emby]:
|
||||||
)
|
)
|
||||||
|
|
||||||
for i, url in enumerate(plex_baseurl):
|
for i, url in enumerate(plex_baseurl):
|
||||||
|
print(f"Plex({url.strip()}, {plex_token[i].strip()})")
|
||||||
server = Plex(
|
server = Plex(
|
||||||
env,
|
env,
|
||||||
base_url=url.strip(),
|
base_url=url.strip(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue