PlexKodiConnect/resources/lib/plexnet/myplexrequest.py
2018-09-30 13:16:17 +02:00

12 lines
431 B
Python

# We don't particularly need a class definition here (yet?), it's just a
# PlexRequest where the server is fixed.
import plexrequest
class MyPlexRequest(plexrequest.PlexServerRequest):
def __init__(self, path):
import myplexserver
plexrequest.PlexServerRequest.__init__(self, myplexserver.MyPlexServer(), path)
# Make sure we're always getting XML
self.addHeader("Accept", "application/xml")