13 lines
431 B
Python
13 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")
|