jellyfin/MediaBrowser.Providers/Chapters/ChapterManager.cs

33 lines
1.0 KiB
C#
Raw Normal View History

2018-12-27 21:43:48 +00:00
using MediaBrowser.Controller.Chapters;
2014-06-09 19:16:14 +00:00
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Library;
2014-06-10 17:36:06 +00:00
using MediaBrowser.Controller.Persistence;
using MediaBrowser.Model.Entities;
using Microsoft.Extensions.Logging;
2014-06-09 19:16:14 +00:00
using System;
using System.Collections.Generic;
namespace MediaBrowser.Providers.Chapters
{
public class ChapterManager : IChapterManager
{
private readonly ILibraryManager _libraryManager;
private readonly ILogger _logger;
private readonly IServerConfigurationManager _config;
2014-06-10 17:36:06 +00:00
private readonly IItemRepository _itemRepo;
2014-06-09 19:16:14 +00:00
2014-06-10 17:36:06 +00:00
public ChapterManager(ILibraryManager libraryManager, ILogger logger, IServerConfigurationManager config, IItemRepository itemRepo)
2014-06-09 19:16:14 +00:00
{
_libraryManager = libraryManager;
_logger = logger;
_config = config;
2014-06-10 17:36:06 +00:00
_itemRepo = itemRepo;
2014-06-09 19:16:14 +00:00
}
public void SaveChapters(string itemId, List<ChapterInfo> chapters)
2014-06-10 17:36:06 +00:00
{
_itemRepo.SaveChapters(new Guid(itemId), chapters);
2014-06-10 17:36:06 +00:00
}
2014-06-09 19:16:14 +00:00
}
}