< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Books.GoogleBooks.GoogleBooksExternalUrlProvider
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Books/GoogleBooks/GoogleBooksExternalUrlProvider.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 25
Line coverage: 100%
Branch coverage
100%
Covered branches: 4
Total branches: 4
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 5/22/2026 - 12:15:17 AM Line coverage: 100% (5/5) Branch coverage: 100% (4/4) Total lines: 25 5/22/2026 - 12:15:17 AM Line coverage: 100% (5/5) Branch coverage: 100% (4/4) Total lines: 25

Metrics

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

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Books/GoogleBooks/GoogleBooksExternalUrlProvider.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using MediaBrowser.Controller.Entities;
 3using MediaBrowser.Controller.Providers;
 4using MediaBrowser.Model.Entities;
 5
 6namespace MediaBrowser.Providers.Books.GoogleBooks;
 7
 8/// <inheritdoc/>
 9public class GoogleBooksExternalUrlProvider : IExternalUrlProvider
 10{
 11    /// <inheritdoc />
 2112    public string Name => "Google Books";
 13
 14    /// <inheritdoc />
 15    public IEnumerable<string> GetExternalUrls(BaseItem item)
 16    {
 917        if (item.TryGetProviderId("GoogleBooks", out var externalId))
 18        {
 219            if (item is Book)
 20            {
 121                yield return $"https://books.google.com/books?id={externalId}";
 22            }
 23        }
 824    }
 25}

Methods/Properties

get_Name()
GetExternalUrls()