Skip to content

Support for Custom URL #24

Description

@jangrewe

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions