Beispiel #1
0
def index():
	if request.json:
		print(request.args)
		print(request.json)
		vtag = request.json['vTag']
		timestamp = request.json['timestamp']
		bottom = False if 'bottom' not in request.json else request.json['bottom']
		comment = request.json['comment']

		collage = Meme(vtag, timestamp, comment)
		status = collage.youtube_artifacts_to_meme()
		collage.clean_artifacts()

		return {
			"success": status,
			"memeS3Url": collage.get_s3_meme()
		}

	return {
		"success": False,
		"message": "Missing json data",
		"memeS3Url": ""
	}