dummy chapters every five minutes instead of ten

pull/702/head
Luke Pulverenti 12 years ago
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…
Cancel
Save