From 87da234b3a69671c64493a5ad074d4c8d075a5f4 Mon Sep 17 00:00:00 2001 From: thest1tch Date: Mon, 12 Jun 2023 19:40:04 +0500 Subject: [PATCH] add plextraktsync --- docs/docker-compose/plextraktsync.md | 144 +++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 docs/docker-compose/plextraktsync.md diff --git a/docs/docker-compose/plextraktsync.md b/docs/docker-compose/plextraktsync.md new file mode 100644 index 0000000..cca1f08 --- /dev/null +++ b/docs/docker-compose/plextraktsync.md @@ -0,0 +1,144 @@ +docker-compose^ + +```yaml +version: "3.7" + +networks: + direct_net: + external: true + +services: + plextraktsync: + image: ghcr.io/taxel/plextraktsync + container_name: plextraktsync + restart: on-failure:2 + volumes: + - /opt/appdata/plextraktsync/config:/app/config + networks: + - direct_net + environment: + - PUID=$PUID + - PGID=$PGID + - TZ=$TZ + command: sync +``` + +конфиг config.yml + +```yaml +cache: + path: $PTS_CACHE_DIR/trakt_cache + +excluded-libraries: + - Private + - Family Holidays + +config: + dotenv_override: true + +plex: + timeout: 30 + +logging: + append: true + # Whether to show timestamps in console messages + console_time: false + debug: false + filename: plextraktsync.log + # Additional logger names to apply filtering + filter_loggers: +# - plexapi +# - requests_cache.backends +# - requests_cache.backends.base +# - requests_cache.backends.sqlite +# - requests_cache.policy.actions +# - requests_cache.session +# - trakt.core +# - urllib3.connectionpool + filter: +# # Filter out all messages with level WARNING +# - level: WARNING +# # Filter out message with level WARNING and containing a text +# - level: WARNING +# message: "not found on Trakt" +# - message: "because provider local has no external Id" +# - message: "because provider none has no external Id" +# - message: "Retry using search for specific Plex Episode" +# # Filter out messages by requests_cache +# - name: requests_cache.backends +# - name: requests_cache.backends.base +# - name: requests_cache.backends.sqlite +# - name: requests_cache.policy.actions +# - name: requests_cache.session + +# settings for 'sync' command (default) +sync: + plex_to_trakt: + collection: false + # Clear collected state of items not present in Plex + clear_collected: false + ratings: true + watched_status: true + # If plex_to_trakt watchlist=false and trakt_to_plex watchlist=true + # the Plex watchlist will be overwritten by Trakt watchlist + watchlist: true + trakt_to_plex: + liked_lists: false + ratings: true + watched_status: true + # If trakt_to_plex watchlist=false and plex_to_trakt watchlist=true + # the Trakt watchlist will be overwritten by Plex watchlist + watchlist: false + # If you prefer to fetch trakt watchlist as a playlist instead of + # plex watchlist, toggle this to true (is read only if watchlist=true) + watchlist_as_playlist: false + +# settings for 'watch' command +watch: + add_collection: false + remove_collection: false + # what video watched percentage (0 to 100) triggers the watched status + scrobble_threshold: 80 + # true to scrobble only what's watched by you, false for all your PMS users + username_filter: true + # Show the progress bar of played media in terminal + media_progressbar: true + +xbmc-providers: + movies: imdb + shows: tvdb + +##### Advanced settings below this line, don't edit unless you know what you're doing ##### +#http_cache: + # https://requests-cache.readthedocs.io/en/main/user_guide/expiration.html#url-patterns + # https://requests-cache.readthedocs.io/en/main/user_guide/expiration.html#expiration-values + # + # The value is seconds to cache. + # Or one of the following special values: + # - DO_NOT_CACHE: Skip both reading from and writing to the cache + # - EXPIRE_IMMEDIATELY: Consider the response already expired, but potentially usable + # - NEVER_EXPIRE: Store responses indefinitely + # + # The value can be also suffixed with a time unit: + # - 5m, 1h, 3d + # See full documentation at: + # - https://github.com/wroberts/pytimeparse#pytimeparse-time-expression-parser + # + # NOTE: If there is more than one match, the first match will be used in the order they are defined +# policy: +# "*.trakt.tv/users/me": 1d +# "*.trakt.tv/users/likes/lists": DO_NOT_CACHE + +# vim:ts=2:sw=2:et + +``` + +в servers.yml указать сервер плекса + +```yaml +servers: + default: + token: token + urls: + - http://plex:32400 +``` \ No newline at end of file