Patch: Fix to StreamerRoute to correctly send user to UserPage/VideoPage;

Update: Display Category Thumbnails
This commit is contained in:
Chris-1010
2025-01-29 14:51:04 +00:00
parent a4f66ba321
commit c0a110c76d
20 changed files with 25 additions and 190 deletions

View File

@@ -42,11 +42,11 @@ def get_recommended_streams() -> list[dict]:
@stream_bp.route('/get_categories')
def get_categories() -> list[dict]:
"""
Returns a list of streams in the most popular category
Returns a list of most watched categories
"""
category_data = most_popular_category()
streams = recommendations_based_on_category(category_data["category_id"])
streams = recommendations_based_on_category(category_data['category_id'])
return jsonify(streams)
@login_required