2014-06-29 20:04:50 -07:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using MediaBrowser.Common.IO;
|
2014-02-04 13:19:29 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Providers;
|
2014-06-29 20:04:50 -07:00
|
|
|
|
using MediaBrowser.LocalMetadata.Parsers;
|
2014-02-04 13:19:29 -07:00
|
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
|
|
|
2014-06-29 20:04:50 -07:00
|
|
|
|
namespace MediaBrowser.LocalMetadata.Providers
|
2014-02-04 13:19:29 -07:00
|
|
|
|
{
|
2014-02-05 21:39:16 -07:00
|
|
|
|
class MusicVideoXmlProvider : BaseXmlProvider<MusicVideo>
|
2014-02-04 13:19:29 -07:00
|
|
|
|
{
|
|
|
|
|
private readonly ILogger _logger;
|
|
|
|
|
|
|
|
|
|
public MusicVideoXmlProvider(IFileSystem fileSystem, ILogger logger)
|
|
|
|
|
: base(fileSystem)
|
|
|
|
|
{
|
|
|
|
|
_logger = logger;
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-02 10:31:08 -07:00
|
|
|
|
protected override void Fetch(MetadataResult<MusicVideo> result, string path, CancellationToken cancellationToken)
|
2014-02-04 13:19:29 -07:00
|
|
|
|
{
|
2015-06-28 18:10:45 -07:00
|
|
|
|
new MusicVideoXmlParser(_logger).Fetch(result, path, cancellationToken);
|
2014-02-04 13:19:29 -07:00
|
|
|
|
}
|
|
|
|
|
|
2014-03-12 12:56:12 -07:00
|
|
|
|
protected override FileSystemInfo GetXmlFile(ItemInfo info, IDirectoryService directoryService)
|
2014-02-04 13:19:29 -07:00
|
|
|
|
{
|
2014-02-05 21:39:16 -07:00
|
|
|
|
return MovieXmlProvider.GetXmlFileInfo(info, FileSystem);
|
2014-02-04 13:19:29 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|