From ec9ac55748bb63423ae2e9c65764b7dec4f1fbcc Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Wed, 8 Feb 2017 13:51:08 +0100 Subject: [PATCH] Changed '/api/v1/plex/request' endpoint to return json obj --- v1/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v1/app.py b/v1/app.py index c8612bb..4f716d9 100755 --- a/v1/app.py +++ b/v1/app.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# -*- coding: utf-8 -*- # Flask auth with HTTP '$ pip install flask_httpauth' # For https '$ pip install Flask-SSLify' @@ -106,7 +107,7 @@ def get_movieRequest(): url = tmdbBaseURL + requestType + requestAPI + requestQuery + requestLanguage # url = "https://api.themoviedb.org/3/search/multi?include_adult=false&query=home%20alone&language=en-US&api_key=9fa154f5355c37a1b9b57ac06e7d6712" - payload = "{}" + payload = "{application/json}" response = requests.request("GET", url, data=payload) print(response.text)