Skip to content

API Token example does not work. #43

@sjorge

Description

@sjorge

There is a missing " on this line:

client.authenticate({"Servers": [{"AccessToken: <API key here>, "address": <Server Address>}]}, discover=False)

It should be:

client.authenticate({"Servers": [{"AccessToken": <API key here>, "address": <Server Address>}]}, discover=False)

Although after adding that, there is now an error about missing key DateLastAccessed.

Traceback (most recent call last):
  File "/home/sjorge/anilist-jf-sync/./sync.py", line 29, in <module>
    jas = JellyfinAnilistSync(
  File "/home/sjorge/anilist-jf-sync/./sync.py", line 25, in __init__
    self.client.authenticate({"Servers": [{"AccessToken": api, "address": url}]}, discover=False)
  File "/home/sjorge/anilist-jf-sync/venv/lib/python3.10/site-packages/jellyfin_apiclient_python/client.py", line 55, in authenticate
    state = self.auth.connect(options or {}, discover)
  File "/home/sjorge/anilist-jf-sync/venv/lib/python3.10/site-packages/jellyfin_apiclient_python/connection_manager.py", line 197, in connect
    servers = self.get_available_servers(discover)
  File "/home/sjorge/anilist-jf-sync/venv/lib/python3.10/site-packages/jellyfin_apiclient_python/connection_manager.py", line 88, in get_available_servers
    servers.sort(key=itemgetter('DateLastAccessed'), reverse=True)
KeyError: 'DateLastAccessed'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions