def build_api_url(): base_url = app.config['JACKET_HOST'] base_port = app.config['JACKET_PORT'] def call_jackett_api(): base_url = app.config['JACKET_HOST'] base_port = app.config['JACKET_PORT'] base_p def handle_request_by_args(query, mode=None): apikey = api: