< Summary - Jellyfin

Information
Class: MediaBrowser.Controller.Entities.AudioBook
Assembly: MediaBrowser.Controller
File(s): /srv/git/jellyfin/MediaBrowser.Controller/Entities/AudioBook.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 65
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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_SupportsPositionTicksResume()100%210%
get_SupportsPlayedStatus()100%210%
FindSeriesSortName()100%210%
FindSeriesName()100%210%
FindSeriesPresentationUniqueKey()100%210%
GetDefaultPrimaryImageAspectRatio()100%210%
FindSeriesId()100%210%
CanDownload()100%210%
GetBlockUnratedType()100%210%

File(s)

/srv/git/jellyfin/MediaBrowser.Controller/Entities/AudioBook.cs

#LineLine coverage
 1#nullable disable
 2
 3#pragma warning disable CA1724, CS1591
 4
 5using System;
 6using System.Text.Json.Serialization;
 7using Jellyfin.Data.Enums;
 8using MediaBrowser.Controller.Providers;
 9
 10namespace MediaBrowser.Controller.Entities
 11{
 12    [Common.RequiresSourceSerialisation]
 13    public class AudioBook : Audio.Audio, IHasSeries, IHasLookupInfo<SongInfo>
 14    {
 15        [JsonIgnore]
 016        public override bool SupportsPositionTicksResume => true;
 17
 18        [JsonIgnore]
 019        public override bool SupportsPlayedStatus => true;
 20
 21        [JsonIgnore]
 22        public string SeriesPresentationUniqueKey { get; set; }
 23
 24        [JsonIgnore]
 25        public string SeriesName { get; set; }
 26
 27        [JsonIgnore]
 28        public Guid SeriesId { get; set; }
 29
 30        public string FindSeriesSortName()
 31        {
 032            return SeriesName;
 33        }
 34
 35        public string FindSeriesName()
 36        {
 037            return SeriesName;
 38        }
 39
 40        public string FindSeriesPresentationUniqueKey()
 41        {
 042            return SeriesPresentationUniqueKey;
 43        }
 44
 45        public override double GetDefaultPrimaryImageAspectRatio()
 46        {
 047            return 0;
 48        }
 49
 50        public Guid FindSeriesId()
 51        {
 052            return SeriesId;
 53        }
 54
 55        public override bool CanDownload()
 56        {
 057            return IsFileProtocol;
 58        }
 59
 60        public override UnratedItem GetBlockUnratedType()
 61        {
 062            return UnratedItem.Book;
 63        }
 64    }
 65}