This commit is contained in:
Elias Jansson
2025-08-22 23:54:52 +02:00
parent 090da1d075
commit dfbd18425a
9 changed files with 1399 additions and 4 deletions

View File

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