Spaces:
Build error
Build error
Commit ·
1103f52
1
Parent(s): 911a5e0
optimize
Browse files110 unmodified lines111112113114115116117118119110 unmodified linesif os.path.exists(cache_path):return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))# If not cached, find the movie path in the index filejson_data = load_json(INDEX_FILE)movie_path = find_movie_path(json_data, title)if not movie_path:return jsonify({"error": "Movie not found"}), 404110 unmodified lines111112113114115116117110 unmodified linesif os.path.exists(cache_path):return send_from_directory(os.path.dirname(cache_path), os.path.basename(cache_path))movie_path = find_movie_path(file_structure, title)if not movie_path:return jsonify({"error": "Movie not found"}), 404
app.py+1-3