mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
dummy chapters every five minutes instead of ten
This commit is contained in:
parent
ced548d824
commit
42783ca48e
@ -286,7 +286,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
||||
/// <summary>
|
||||
/// The dummy chapter duration
|
||||
/// </summary>
|
||||
private readonly long DummyChapterDuration = TimeSpan.FromMinutes(10).Ticks;
|
||||
private readonly long _dummyChapterDuration = TimeSpan.FromMinutes(5).Ticks;
|
||||
|
||||
/// <summary>
|
||||
/// Adds the dummy chapters.
|
||||
@ -296,7 +296,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
||||
{
|
||||
var runtime = video.RunTimeTicks ?? 0;
|
||||
|
||||
if (runtime < DummyChapterDuration)
|
||||
if (runtime < _dummyChapterDuration)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -315,7 +315,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
||||
});
|
||||
|
||||
index++;
|
||||
currentChapterTicks += DummyChapterDuration;
|
||||
currentChapterTicks += _dummyChapterDuration;
|
||||
}
|
||||
|
||||
video.Chapters = chapters;
|
||||
|
Loading…
Reference in New Issue
Block a user