python-plexapi: plexapi.exceptions.BadRequest: (406) not_acceptable
#Plex Media Server Version : 1.7.6.4058 OS: FreeBSD 11.0-STABLE Python: 2.7.13 pip 9.0.1
websocket-client and requests are installed.
#!/usr/local/bin/python2.7
from plexapi.server import PlexServer
baseurl = 'http://192.168.0.54:32400'
token = 'TOKEN'
plex = PlexServer(baseurl, token)
ozzy = plex.library.section('Trailers').get('Ozzy')
client = plex.client("DESKTOP-B88TLB1")
client.playMedia(ozzy)
Traceback
Traceback (most recent call last): File "./test.py", line 10, in <module> client.playMedia(ozzy) File "/usr/local/lib/python2.7/site-packages/plexapi/client.py", line 441, in playMedia }, **params)) File "/usr/local/lib/python2.7/site-packages/plexapi/client.py", line 181, in sendCommand return self.query(key, headers=headers) File "/usr/local/lib/python2.7/site-packages/plexapi/client.py", line 153, in query raise BadRequest('(%s) %s; %s' % (response.status_code, codename, errtext)) plexapi.exceptions.BadRequest: (406) not_acceptable;
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (2 by maintainers)
Commits related to this issue
- Fix https://github.com/pkkid/python-plexapi/issues/158 Confirmed on ptp and ios. — committed to pkkid/python-plexapi by Hellowlol 7 years ago
- Merge pull request #160 from pkkid/shitty_players Fix https://github.com/pkkid/python-plexapi/issues/158 — committed to pkkid/python-plexapi by pkkid 7 years ago
Just give @hellowlol write access. 😛
@UnR34L Can you try https://github.com/pkkid/python-plexapi/pull/160 on samsung etc.