< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Books.Isbn.IsbnExternalUrlProvider
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Books/Isbn/ISBNExternalUrlProvider.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 25
Line coverage: 100%
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 3/24/2026 - 12:13:40 AM Line coverage: 100% (1/1) Total lines: 25

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Books/Isbn/ISBNExternalUrlProvider.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using MediaBrowser.Controller.Entities;
 3using MediaBrowser.Controller.Providers;
 4using MediaBrowser.Model.Entities;
 5
 6namespace MediaBrowser.Providers.Books.Isbn;
 7
 8/// <inheritdoc/>
 9public class IsbnExternalUrlProvider : IExternalUrlProvider
 10{
 11    /// <inheritdoc/>
 2112    public string Name => "ISBN";
 13
 14    /// <inheritdoc />
 15    public IEnumerable<string> GetExternalUrls(BaseItem item)
 16    {
 17        if (item.TryGetProviderId("ISBN", out var externalId))
 18        {
 19            if (item is Book)
 20            {
 21                yield return $"https://search.worldcat.org/search?q=bn:{externalId}";
 22            }
 23        }
 24    }
 25}

Methods/Properties

get_Name()