mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -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>
|
/// <summary>
|
||||||
/// The dummy chapter duration
|
/// The dummy chapter duration
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private readonly long DummyChapterDuration = TimeSpan.FromMinutes(10).Ticks;
|
private readonly long _dummyChapterDuration = TimeSpan.FromMinutes(5).Ticks;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the dummy chapters.
|
/// Adds the dummy chapters.
|
||||||
@ -296,7 +296,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
|||||||
{
|
{
|
||||||
var runtime = video.RunTimeTicks ?? 0;
|
var runtime = video.RunTimeTicks ?? 0;
|
||||||
|
|
||||||
if (runtime < DummyChapterDuration)
|
if (runtime < _dummyChapterDuration)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -315,7 +315,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
|||||||
});
|
});
|
||||||
|
|
||||||
index++;
|
index++;
|
||||||
currentChapterTicks += DummyChapterDuration;
|
currentChapterTicks += _dummyChapterDuration;
|
||||||
}
|
}
|
||||||
|
|
||||||
video.Chapters = chapters;
|
video.Chapters = chapters;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user