Compare commits
8 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
a1adf97bfb | |
|
|
8dea290dd1 | |
|
|
90358f0176 | |
|
|
96239d6704 | |
|
|
e8e6d6469f | |
|
|
0dc338df6f | |
|
|
72df1cd0ad | |
|
|
8af7fe00f9 |
|
|
@ -0,0 +1,117 @@
|
||||||
|
# Global Settings
|
||||||
|
|
||||||
|
## Do not mark any shows/movies as played and instead just output to log if they would of been marked.
|
||||||
|
DRYRUN = "False"
|
||||||
|
|
||||||
|
## Debugging level, "info" is default, "debug" is more verbose
|
||||||
|
#DEBUG_LEVEL = "DEBUG"
|
||||||
|
DEBUG_LEVEL = "INFO"
|
||||||
|
|
||||||
|
## If set to true then the script will only run once and then exit
|
||||||
|
RUN_ONLY_ONCE = "True"
|
||||||
|
|
||||||
|
## How often to run the script in seconds
|
||||||
|
SLEEP_DURATION = "60"
|
||||||
|
|
||||||
|
## Log file where all output will be written to
|
||||||
|
LOG_FILE = "/mnt/log.log"
|
||||||
|
|
||||||
|
## Mark file where all shows/movies that have been marked as played will be written to
|
||||||
|
MARK_FILE = "/mnt/mark.log"
|
||||||
|
|
||||||
|
## Timeout for requests for jellyfin
|
||||||
|
REQUEST_TIMEOUT = 300
|
||||||
|
|
||||||
|
## Max threads for processing
|
||||||
|
MAX_THREADS = 1
|
||||||
|
|
||||||
|
## Generate guids/locations
|
||||||
|
## These are slow processes, so this is a way to speed things up
|
||||||
|
## If media servers are using the same files then you can enable only generate locations
|
||||||
|
## If media servers are using different files then you can enable only generate guids
|
||||||
|
## Default is to generate both
|
||||||
|
GENERATE_GUIDS = "True"
|
||||||
|
GENERATE_LOCATIONS = "True"
|
||||||
|
|
||||||
|
## Map usernames between servers in the event that they are different, order does not matter
|
||||||
|
## Comma separated for multiple options
|
||||||
|
# jellyfin: plex,plex
|
||||||
|
#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
|
||||||
|
## Comma separated for multiple options
|
||||||
|
LIBRARY_MAPPING = { "TV Shows": "Scratch TV Shows", "Scratch TV Shows": "TV Shows" }
|
||||||
|
|
||||||
|
## Blacklisting/Whitelisting libraries, library types such as Movies/TV Shows, and users. Mappings apply so if the mapping for the user or library exist then both will be excluded.
|
||||||
|
## Comma separated for multiple options
|
||||||
|
#BLACKLIST_LIBRARY = ""
|
||||||
|
WHITELIST_LIBRARY = "TV Shows,Scratch TV Shows,Movies"
|
||||||
|
#BLACKLIST_LIBRARY_TYPE = ""
|
||||||
|
#WHITELIST_LIBRARY_TYPE = ""
|
||||||
|
#BLACKLIST_USERS = ""
|
||||||
|
WHITELIST_USERS = "belandbroc,debila"
|
||||||
|
|
||||||
|
|
||||||
|
# Plex
|
||||||
|
|
||||||
|
## Recommended to use token as it is faster to connect as it is direct to the server instead of going through the plex servers
|
||||||
|
## URL of the plex server, use hostname or IP address if the hostname is not resolving correctly
|
||||||
|
## Comma separated list for multiple servers
|
||||||
|
PLEX_BASEURL = "http://192.168.0.86:32400"
|
||||||
|
|
||||||
|
## Plex token https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
|
||||||
|
## Comma separated list for multiple servers
|
||||||
|
# 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
|
||||||
|
## Comma separated for multiple options
|
||||||
|
#PLEX_USERNAME = "squeaky2x3@gmail.com"
|
||||||
|
#PLEX_PASSWORD = "qoDuGNsGsWRurOd5QFdRy2@"
|
||||||
|
#PLEX_SERVERNAME = "Scratch"
|
||||||
|
|
||||||
|
## Skip hostname validation for ssl certificates.
|
||||||
|
## Set to True if running into ssl certificate errors
|
||||||
|
SSL_BYPASS = "True"
|
||||||
|
|
||||||
|
|
||||||
|
# Jellyfin
|
||||||
|
|
||||||
|
## Jellyfin server URL, use hostname or IP address if the hostname is not resolving correctly
|
||||||
|
## Comma separated list for multiple servers
|
||||||
|
JELLYFIN_BASEURL = "https://jellyfin.home.blapointe.com"
|
||||||
|
|
||||||
|
## Jellyfin api token, created manually by logging in to the jellyfin server admin dashboard and creating an api key
|
||||||
|
## Comma separated list for multiple servers
|
||||||
|
JELLYFIN_TOKEN = "1dc766ce6ca44c53b773263a06889b96"
|
||||||
|
|
||||||
|
|
||||||
|
# # Emby
|
||||||
|
#
|
||||||
|
# ## Emby server URL, use hostname or IP address if the hostname is not resolving correctly
|
||||||
|
# ## Comma seperated list for multiple servers
|
||||||
|
# EMBY_BASEURL = "http://localhost:8097"
|
||||||
|
#
|
||||||
|
# ## Emby api token, created manually by logging in to the Emby server admin dashboard and creating an api key
|
||||||
|
# ## Comma seperated list for multiple servers
|
||||||
|
# EMBY_TOKEN = "SuperSecretToken"
|
||||||
|
|
||||||
|
|
||||||
|
# Syncing Options
|
||||||
|
|
||||||
|
## control the direction of syncing. e.g. SYNC_FROM_PLEX_TO_JELLYFIN set to true will cause the updates from plex
|
||||||
|
## to be updated in jellyfin. SYNC_FROM_PLEX_TO_PLEX set to true will sync updates between multiple plex servers
|
||||||
|
SYNC_FROM_PLEX_TO_JELLYFIN = "True"
|
||||||
|
SYNC_FROM_PLEX_TO_PLEX = "False"
|
||||||
|
#SYNC_FROM_PLEX_TO_EMBY = "False"
|
||||||
|
|
||||||
|
SYNC_FROM_JELLYFIN_TO_PLEX = "False"
|
||||||
|
SYNC_FROM_JELLYFIN_TO_JELLYFIN = "False"
|
||||||
|
#SYNC_FROM_JELLYFIN_TO_EMBY = "False"
|
||||||
|
|
||||||
|
#SYNC_FROM_EMBY_TO_PLEX = "False"
|
||||||
|
#SYNC_FROM_EMBY_TO_JELLYFIN = "False"
|
||||||
|
#SYNC_FROM_EMBY_TO_EMBY = "False"
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
d=/tmp/jellyplex.d
|
||||||
|
mkdir -p $d
|
||||||
|
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