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)); }
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)); }
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)); }
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)); }