mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Was a little inspired. Now we have a database (self populating) of imdb id's - why shouldn't we actually have the ability to scrape any other instance of torrentio, or knightcrawler? Also restructured the producer to be vertically sliced to make it easier to work with Too much flicking back and forth between Jobs and Crawlers when configuring
14 lines
545 B
C#
14 lines
545 B
C#
namespace Producer.Features.DataProcessing;
|
|
|
|
internal static class ServiceCollectionExtensions
|
|
{
|
|
internal static IServiceCollection AddDataStorage(this IServiceCollection services)
|
|
{
|
|
services.LoadConfigurationFromEnv<PostgresConfiguration>();
|
|
services.LoadConfigurationFromEnv<MongoConfiguration>();
|
|
services.AddTransient<IDataStorage, DapperDataStorage>();
|
|
services.AddTransient<IMessagePublisher, TorrentPublisher>();
|
|
services.AddSingleton<ImdbMongoDbService>();
|
|
return services;
|
|
}
|
|
} |