< Summary - Jellyfin

Information
Class: MediaBrowser.Providers.Plugins.Omdb.Plugin
Assembly: MediaBrowser.Providers
File(s): /srv/git/jellyfin/MediaBrowser.Providers/Plugins/Omdb/Plugin.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 41
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
.ctor(...)100%11100%
get_Id()100%11100%
get_Name()100%11100%
get_Description()100%11100%
get_ConfigurationFileName()100%11100%

File(s)

/srv/git/jellyfin/MediaBrowser.Providers/Plugins/Omdb/Plugin.cs

#LineLine coverage
 1#nullable disable
 2#pragma warning disable CS1591
 3
 4using System;
 5using System.Collections.Generic;
 6using MediaBrowser.Common.Configuration;
 7using MediaBrowser.Common.Plugins;
 8using MediaBrowser.Model.Plugins;
 9using MediaBrowser.Model.Serialization;
 10
 11namespace MediaBrowser.Providers.Plugins.Omdb
 12{
 13    public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
 14    {
 15        public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
 2216            : base(applicationPaths, xmlSerializer)
 17        {
 2218            Instance = this;
 2219        }
 20
 21        public static Plugin Instance { get; private set; }
 22
 2523        public override Guid Id => new Guid("a628c0da-fac5-4c7e-9d1a-7134223f14c8");
 24
 3025        public override string Name => "OMDb";
 26
 127        public override string Description => "Get metadata for movies and other video content from OMDb.";
 28
 29        // TODO remove when plugin removed from server.
 130        public override string ConfigurationFileName => "Jellyfin.Plugin.Omdb.xml";
 31
 32        public IEnumerable<PluginPageInfo> GetPages()
 33        {
 34            yield return new PluginPageInfo
 35            {
 36                Name = Name,
 37                EmbeddedResourcePath = GetType().Namespace + ".Configuration.config.html"
 38            };
 39        }
 40    }
 41}