[PR #14361] [CLOSED] Add endpoint to fetch a random movie #13957

Closed
opened 2026-02-07 07:21:58 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/14361
Author: @SkyLostTR
Created: 6/21/2025
Status: Closed

Base: masterHead: master


📝 Commits (6)

  • 4c93b32 Add random movie endpoint
  • 863df98 Merge pull request #1 from SkyLostTR/codex/add-random-movie-suggestion-feature
  • 1e9bb21 docs: document random movies API endpoint
  • e49ee60 Merge pull request #2 from SkyLostTR/codex/update-readme-with-get-/movies/random-details
  • 611503c Add MoviesController unit tests
  • e69914f Merge pull request #3 from SkyLostTR/codex/create-moviescontrollertests-with-mocks

📊 Changes

3 files changed (+161 additions, -0 deletions)

View changed files

📝 Jellyfin.Api/Controllers/MoviesController.cs (+50 -0)
📝 README.md (+27 -0)
tests/Jellyfin.Api.Tests/Controllers/MoviesControllerTests.cs (+84 -0)

📄 Description

Changes

  • Introduced a new GET /Random endpoint in the Movies controller.
  • Accepts optional userId query parameter to filter results and attach user-specific data.
  • Utilizes internal query to fetch a random movie with proper DtoOptions.
  • Returns 200 OK with the movie DTO if found; otherwise, returns 404 Not Found.

Issues

  • Improves API support for personalized or randomized movie suggestions.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/14361 **Author:** [@SkyLostTR](https://github.com/SkyLostTR) **Created:** 6/21/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (6) - [`4c93b32`](https://github.com/jellyfin/jellyfin/commit/4c93b32d405afc02232ac165fa50de0495ee880b) Add random movie endpoint - [`863df98`](https://github.com/jellyfin/jellyfin/commit/863df98ffa6bc7ca859a940b4ec4b1d88889a011) Merge pull request #1 from SkyLostTR/codex/add-random-movie-suggestion-feature - [`1e9bb21`](https://github.com/jellyfin/jellyfin/commit/1e9bb21dcd97a254d32e655338bed4a4e55f20f1) docs: document random movies API endpoint - [`e49ee60`](https://github.com/jellyfin/jellyfin/commit/e49ee608ec6946666a6d782a490a4682f4b22fc1) Merge pull request #2 from SkyLostTR/codex/update-readme-with-get-/movies/random-details - [`611503c`](https://github.com/jellyfin/jellyfin/commit/611503c833c672b0550eebdad5226683b444e414) Add MoviesController unit tests - [`e69914f`](https://github.com/jellyfin/jellyfin/commit/e69914f6d47d7a26f027939e74351ce83fbe92e6) Merge pull request #3 from SkyLostTR/codex/create-moviescontrollertests-with-mocks ### 📊 Changes **3 files changed** (+161 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Controllers/MoviesController.cs` (+50 -0) 📝 `README.md` (+27 -0) ➕ `tests/Jellyfin.Api.Tests/Controllers/MoviesControllerTests.cs` (+84 -0) </details> ### 📄 Description **Changes** * Introduced a new `GET /Random` endpoint in the Movies controller. * Accepts optional `userId` query parameter to filter results and attach user-specific data. * Utilizes internal query to fetch a random movie with proper `DtoOptions`. * Returns `200 OK` with the movie DTO if found; otherwise, returns `404 Not Found`. **Issues** * Improves API support for personalized or randomized movie suggestions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:21:58 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13957