mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Store metadata file extensions
This commit is contained in:
parent
a621f0d49b
commit
cd8659e684
@ -88,9 +88,10 @@ public override IEnumerable<ExtraFile> ProcessFiles(Series series, List<string>
|
||||
|
||||
metadata.SeasonNumber = localEpisode.SeasonNumber;
|
||||
metadata.EpisodeFileId = localEpisode.Episodes.First().EpisodeFileId;
|
||||
metadata.Extension = Path.GetExtension(possibleMetadataFile);
|
||||
}
|
||||
|
||||
metadata.Extension = Path.GetExtension(possibleMetadataFile);
|
||||
|
||||
metadataFiles.Add(metadata);
|
||||
}
|
||||
}
|
||||
|
@ -225,6 +225,7 @@ private MetadataFile ProcessSeriesMetadata(IMetadata consumer, Series series, Li
|
||||
|
||||
metadata.Hash = hash;
|
||||
metadata.RelativePath = seriesMetadata.RelativePath;
|
||||
metadata.Extension = Path.GetExtension(fullPath);
|
||||
|
||||
return metadata;
|
||||
}
|
||||
@ -263,7 +264,8 @@ private MetadataFile ProcessEpisodeMetadata(IMetadata consumer, Series series, E
|
||||
EpisodeFileId = episodeFile.Id,
|
||||
Consumer = consumer.GetType().Name,
|
||||
Type = MetadataType.EpisodeMetadata,
|
||||
RelativePath = episodeMetadata.RelativePath
|
||||
RelativePath = episodeMetadata.RelativePath,
|
||||
Extension = Path.GetExtension(fullPath)
|
||||
};
|
||||
|
||||
if (hash == metadata.Hash)
|
||||
@ -300,7 +302,8 @@ private List<MetadataFile> ProcessSeriesImages(IMetadata consumer, Series series
|
||||
SeriesId = series.Id,
|
||||
Consumer = consumer.GetType().Name,
|
||||
Type = MetadataType.SeriesImage,
|
||||
RelativePath = image.RelativePath
|
||||
RelativePath = image.RelativePath,
|
||||
Extension = Path.GetExtension(fullPath)
|
||||
};
|
||||
|
||||
DownloadImage(series, image);
|
||||
@ -336,7 +339,8 @@ private List<MetadataFile> ProcessSeasonImages(IMetadata consumer, Series series
|
||||
SeasonNumber = season.SeasonNumber,
|
||||
Consumer = consumer.GetType().Name,
|
||||
Type = MetadataType.SeasonImage,
|
||||
RelativePath = image.RelativePath
|
||||
RelativePath = image.RelativePath,
|
||||
Extension = Path.GetExtension(fullPath)
|
||||
};
|
||||
|
||||
DownloadImage(series, image);
|
||||
@ -385,7 +389,8 @@ private List<MetadataFile> ProcessEpisodeImages(IMetadata consumer, Series serie
|
||||
EpisodeFileId = episodeFile.Id,
|
||||
Consumer = consumer.GetType().Name,
|
||||
Type = MetadataType.EpisodeImage,
|
||||
RelativePath = image.RelativePath
|
||||
RelativePath = image.RelativePath,
|
||||
Extension = Path.GetExtension(fullPath)
|
||||
};
|
||||
|
||||
DownloadImage(series, image);
|
||||
|
Loading…
Reference in New Issue
Block a user