PlexKodiConnect/resources/lib/plexnet/myplexrequest.py

13 lines
431 B
Python
Raw Normal View History

2018-09-30 21:16:17 +10:00
# 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")