< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Plugins.Tmdb.Api.TmdbController
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Plugins/Tmdb/Api/TmdbController.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 42
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 1/23/2026 - 12:11:06 AM Line coverage: 0% (0/3) Total lines: 414/19/2026 - 12:14:27 AM Line coverage: 0% (0/5) Total lines: 414/30/2026 - 12:14:58 AM Line coverage: 0% (0/5) Total lines: 42

Coverage delta

Coverage delta 1 -1

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%210%
TmdbClientConfiguration()100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Plugins/Tmdb/Api/TmdbController.cs

#LineLine coverage
 1using System.Net.Mime;
 2using System.Threading.Tasks;
 3using Microsoft.AspNetCore.Authorization;
 4using Microsoft.AspNetCore.Http;
 5using Microsoft.AspNetCore.Mvc;
 6using TMDbLib.Objects.General;
 7
 8namespace MediaBrowser.Providers.Plugins.Tmdb.Api
 9{
 10    /// <summary>
 11    /// The TMDb API controller.
 12    /// </summary>
 13    [ApiController]
 14    [Authorize]
 15    [Route("[controller]")]
 16    [Produces(MediaTypeNames.Application.Json)]
 17    [ApiExplorerSettings(IgnoreApi = true)]
 18    public class TmdbController : ControllerBase
 19    {
 20        private readonly TmdbClientManager _tmdbClientManager;
 21
 22        /// <summary>
 23        /// Initializes a new instance of the <see cref="TmdbController"/> class.
 24        /// </summary>
 25        /// <param name="tmdbClientManager">The TMDb client manager.</param>
 026        public TmdbController(TmdbClientManager tmdbClientManager)
 27        {
 028            _tmdbClientManager = tmdbClientManager;
 029        }
 30
 31        /// <summary>
 32        /// Gets the TMDb image configuration options.
 33        /// </summary>
 34        /// <returns>The image portion of the TMDb client configuration.</returns>
 35        [HttpGet("ClientConfiguration")]
 36        [ProducesResponseType(StatusCodes.Status200OK)]
 37        public async Task<ConfigImageTypes?> TmdbClientConfiguration()
 38        {
 039            return (await _tmdbClientManager.GetClientConfiguration().ConfigureAwait(false)).Images;
 040        }
 41    }
 42}