Hi, could you please add support for custom URLs? My CPv2 is running under "/movies", and i don't want to patch the code only in my scripts, because i guess there are other people if different URLs, too. (I'm doing this because of mod_proxy)
I should be only adding a new setting like "cp_url" and then doing some magic in _construct_cp_url like
self.cp_url += "://%s:%s%s" % ( self.settings[ "cp_server" ], self.settings [ "cp_port" ], self.settings [ "cp_url" ] )
I've done it the quick & dirty way, via:
self.cp_url += "://%s:%s%s" % ( self.settings[ "cp_server" ], self.settings [ "cp_port" ], "/movies" )
but that's just a quick fix for my own purposes ;-)
Thanks!
Hi, could you please add support for custom URLs? My CPv2 is running under "/movies", and i don't want to patch the code only in my scripts, because i guess there are other people if different URLs, too. (I'm doing this because of mod_proxy)
I should be only adding a new setting like "cp_url" and then doing some magic in _construct_cp_url like
self.cp_url += "://%s:%s%s" % ( self.settings[ "cp_server" ], self.settings [ "cp_port" ], self.settings [ "cp_url" ] )
I've done it the quick & dirty way, via:
self.cp_url += "://%s:%s%s" % ( self.settings[ "cp_server" ], self.settings [ "cp_port" ], "/movies" )
but that's just a quick fix for my own purposes ;-)
Thanks!