Taxel / PlexTraktSync

A python script that syncs the movies, shows and ratings between trakt and Plex (without needing a PlexPass or Trakt VIP subscription)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No permission to access sessions, disabling username filter

skeletclique opened this issue · comments

Confirmation

  • I have read the README.md on the project homepage
  • I have checked if identical issue already exists
  • I have tried downgrading to find version that can be used as a workaround

The problem

plextraktsync watch not working

Error trace / logs

INFO     Listening for events!
INFO     Starting AlertListener:
         ws://onestopshop-plex210.everlycdn.com:80/:/websockets/notifications?X-Plex-Token=<hidden>
ERROR    AlertListener Error: scheme https is invalid
ERROR    scheme https is invalid - goodbye
ERROR    Server closed connection
WARNING  No permission to access sessions, disabling username filter
ERROR    Listener finished. Restarting in 15 seconds
INFO     Starting AlertListener:
         ws://onestopshop-plex210.everlycdn.com:80/:/websockets/notifications?X-Plex-Token=<hidden>
ERROR    AlertListener Error: scheme https is invalid
ERROR    scheme https is invalid - goodbye
ERROR    Server closed connection
ERROR    Listener finished. Restarting in 15 seconds
INFO     Starting AlertListener:
         ws://onestopshop-plex210.everlycdn.com:80/:/websockets/notifications?X-Plex-Token=<hidden>

Expected behavior

plextraktsync watch to start following activity

Steps to reproduce the behavior

plextraktsync watch

Inspect of problematic items

No response

Workarounds

No response

Install method

pipx

Config file contents

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: true
    # 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: true
    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: true
    # 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

Version

0.25.15

Python Version

3.11

Operating System and Version

Windows 11

this is just a warning:

WARNING  No permission to access sessions, disabling username filter

it means you are not admin in the server you are using.

this should be the issue title:

plextraktsync watch not working - scheme https is invalid

this is your error:

ERROR    AlertListener Error: scheme https is invalid
ERROR    scheme https is invalid - goodbye

your python installation is crippled. it's very difficult to troubleshoot as the reason is not know. try re-installing python or use docker installation?

closing stale issue