コード例 #1
0
 public MovieProviderFromXml(ILogManager logManager, IServerConfigurationManager configurationManager, IItemRepository itemRepo, IFileSystem fileSystem)
     : base(logManager, configurationManager)
 {
     _itemRepo   = itemRepo;
     _fileSystem = fileSystem;
     Current     = this;
 }
コード例 #2
0
 public MovieProviderFromXml(ILogManager logManager, IServerConfigurationManager configurationManager, IItemRepository itemRepo, IFileSystem fileSystem)
     : base(logManager, configurationManager)
 {
     _itemRepo = itemRepo;
     _fileSystem = fileSystem;
     Current = this;
 }
コード例 #3
0
        /// <summary>
        /// Determines whether [has alt meta] [the specified item].
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns><c>true</c> if [has alt meta] [the specified item]; otherwise, <c>false</c>.</returns>
        internal static bool HasAltMeta(BaseItem item)
        {
            if (item is BoxSet)
            {
                return(item.LocationType == LocationType.FileSystem && item.ResolveArgs.ContainsMetaFileByName("collection.xml"));
            }

            var xmlFileName = MovieProviderFromXml.GetXmlFilename(item);

            return(item.LocationType == LocationType.FileSystem && item.ResolveArgs.ContainsMetaFileByName(xmlFileName));
        }
コード例 #4
0
 public MovieProviderFromXml(ILogManager logManager, IServerConfigurationManager configurationManager)
     : base(logManager, configurationManager)
 {
     Current = this;
 }
コード例 #5
0
 public MovieProviderFromXml(ILogManager logManager, IServerConfigurationManager configurationManager)
     : base(logManager, configurationManager)
 {
     Current = this;
 }