Exemplo n.º 1
0
        public Task <ItemUpdateType> FetchAudioInfo <T>(T item, CancellationToken cancellationToken)
            where T : Audio
        {
            var prober = new FFProbeAudioInfo(_mediaEncoder, _itemRepo, _appPaths, _json, _libraryManager);

            return(prober.Probe(item, cancellationToken));
        }
Exemplo n.º 2
0
        public Task <ItemUpdateType> FetchAudioInfo <T>(T item, CancellationToken cancellationToken)
            where T : Audio
        {
            if (item.LocationType != LocationType.FileSystem)
            {
                return(_cachedTask);
            }

            var prober = new FFProbeAudioInfo(_mediaEncoder, _itemRepo, _appPaths, _json, _libraryManager);

            return(prober.Probe(item, cancellationToken));
        }
Exemplo n.º 3
0
        public Task <ItemUpdateType> FetchAudioInfo <T>(T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
            where T : Audio
        {
            if (item.IsVirtualItem)
            {
                return(_cachedTask);
            }

            if (!options.EnableRemoteContentProbe && !item.IsFileProtocol)
            {
                return(_cachedTask);
            }

            var prober = new FFProbeAudioInfo(_mediaEncoder, _itemRepo, _appPaths, _json, _libraryManager);

            return(prober.Probe(item, cancellationToken));
        }
Exemplo n.º 4
0
        public Task <ItemUpdateType> FetchAudioInfo <T>(T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
            where T : Audio
        {
            if (item.IsVirtualItem)
            {
                return(_cachedTask);
            }

            if (!options.EnableRemoteContentProbe && !item.IsFileProtocol)
            {
                return(_cachedTask);
            }

            if (item.IsShortcut)
            {
                FetchShortcutInfo(item);
            }

            return(_audioProber.Probe(item, options, cancellationToken));
        }