Closed nterupt closed 5 years ago
Ah, sorry. It also needs a userid. the line should look something like this
server = embypy.Emby('https;//XYZ.COM:123',api_key='deadbeef',device_id='python3', userid='some hex string')
I should change the main object creation thing to give errors. The 2 (minimal, you can specify more args) modes of creating it should be:
embypy.Emby([url=]url, userid=..., api_key=...)
or
embypy.Emby([url=]url, username='...', password='...')
The problem is that userid is not needed for most of the requests, but it is needed for some, login only requires an api key (in this auth mode), but api keys are not connected to a specific account (so an api key can be used to login as any user... I think). I'll get that fix soon-ish.
edit: (side note:) device id is not really a needed parameter
After a further check, it seems that I had the check for device_id
and it would throw an error if you didn't give that... but then a few lines later it would insert a default if not given... my bad (fixed to check for userid now).
I am trying to retrive the overview for an episode item.
I have executed the following commands.
[GET 'exact episode title']
print(episode.overview)
[GET A BLANK OUTPUT]Trying to figure out if the overview wasn't getting queried properly I ran:
episode.update_sync()
and got the following traceback
Is there ultimately an issue with how I am using the API?