Torrents
This commit is contained in:
@@ -84,6 +84,15 @@ namespace Aberwyn.Data
|
||||
if (metadata != null)
|
||||
{
|
||||
torrentItem.Metadata = metadata;
|
||||
var movie = await _movieMetadataService.SearchMovieAsync(torrentItem.MovieName);
|
||||
if (movie?.offers != null)
|
||||
{
|
||||
metadata.Providers = movie.offers
|
||||
.Where(o => o.monetizationType == "FLATRATE") // typ Netflix, Prime
|
||||
.Select(o => o.provider.clearName)
|
||||
.Distinct()
|
||||
.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
_context.TorrentItems.Add(torrentItem);
|
||||
|
||||
Reference in New Issue
Block a user