Start of the metadata/filename on/off stuff.
This commit is contained in:
parent
bc41b0256e
commit
3fe5933358
8 changed files with 46 additions and 4 deletions
|
@ -16,6 +16,7 @@ public class BasicParser(IDirectoryService directoryService, IDefaultParser imag
|
|||
{
|
||||
var fileName = directoryService.FileSystem.Path.GetFileNameWithoutExtension(filePath);
|
||||
// TODO: Potential Bug: This will return null, but on Image libraries, if all images, we would want to include this.
|
||||
// NOTE: This may no longer be needed as we have file type group support now, thus an image wouldn't come for a Series
|
||||
if (type != LibraryType.Image && Parser.IsCoverImage(directoryService.FileSystem.Path.GetFileName(filePath))) return null;
|
||||
|
||||
if (Parser.IsImage(filePath))
|
||||
|
|
|
@ -193,10 +193,6 @@ public class ProcessSeries : IProcessSeries
|
|||
|
||||
if (seriesAdded)
|
||||
{
|
||||
// See if any recommendations can link up to the series and pre-fetch external metadata for the series
|
||||
// BackgroundJob.Enqueue(() =>
|
||||
// _externalMetadataService.FetchSeriesMetadata(series.Id, series.Library.Type));
|
||||
|
||||
await _eventHub.SendMessageAsync(MessageFactory.SeriesAdded,
|
||||
MessageFactory.SeriesAddedEvent(series.Id, series.Name, series.LibraryId), false);
|
||||
}
|
||||
|
@ -216,6 +212,7 @@ public class ProcessSeries : IProcessSeries
|
|||
|
||||
if (seriesAdded)
|
||||
{
|
||||
// Prefetch metadata if applicable
|
||||
await _externalMetadataService.FetchSeriesMetadata(series.Id, series.Library.Type);
|
||||
}
|
||||
await _metadataService.GenerateCoversForSeries(series.LibraryId, series.Id, false, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue