< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.TV.Zap2ItExternalUrlProvider
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 24
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

Metrics

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

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/TV/Zap2ItExternalUrlProvider.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using MediaBrowser.Controller.Entities;
 3using MediaBrowser.Controller.Providers;
 4using MediaBrowser.Model.Entities;
 5
 6namespace MediaBrowser.Providers.TV;
 7
 8/// <summary>
 9/// External URLs for TMDb.
 10/// </summary>
 11public class Zap2ItExternalUrlProvider : IExternalUrlProvider
 12{
 13    /// <inheritdoc/>
 2114    public string Name => "Zap2It";
 15
 16    /// <inheritdoc/>
 17    public IEnumerable<string> GetExternalUrls(BaseItem item)
 18    {
 19        if (item.TryGetProviderId(MetadataProvider.Zap2It, out var externalId))
 20        {
 21            yield return $"http://tvlistings.zap2it.com/overview.html?programSeriesId={externalId}";
 22         }
 23    }
 24}

Methods/Properties

get_Name()