-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Token example does not work. #43
Comments
I tried with: client.authenticate({"Servers": [{"AccessToken": api, "address": url, "DateLastAccessed": 0}]}, discover=False) But that just results in different errors:
|
@sjorge I was having the same issue. Using your method above, I was able to connect by instantiating the .app() info, and
Hopefully this helps |
@Sean-Brooks This also means you are not authenticating with an API token, but a device access token -- the differences here are annoying, but it's due to the server overloading what the meaning of AccessToken means. @sjorge I've pushed a PR to fix the missing quote, but the missing |
I gave up and ended up just doing it manually with the requests library. Although jellyfin server doesn't really seem to like just plain API token access as it shows some But looking at my notes it immediately throws that after doing
|
Yeah using an API key doesn't work with this package. After fixing the broken syntax in the example, I see the same error with Plain requests works fine though! |
@s-t-e-v-e-n-k PyPI reports 1.9.2 (September 2022) as the latest release of the package, could this explain why users are reporting the behaviour from before your commit was merged? |
@Touchstone64 It's a good point, people might need to install from git. |
There is a missing " on this line:
It should be:
Although after adding that, there is now an error about missing key
DateLastAccessed
.The text was updated successfully, but these errors were encountered: