mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Create service to populate Imdb data collection within mongo
We can use this collection as an alternative source to lookup imdb ids, which would be executed before name_to_imdb is called in the consumer.
This commit is contained in:
9
src/metadata/Features/Literals/CronExpressions.cs
Normal file
9
src/metadata/Features/Literals/CronExpressions.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Metadata.Features.Literals;
|
||||
|
||||
public static class CronExpressions
|
||||
{
|
||||
public const string EveryHour = "0 0 * * *";
|
||||
public const string EveryDay = "0 0 0 * *";
|
||||
public const string EveryWeek = "0 0 * * 0";
|
||||
public const string EveryMonth = "0 0 0 * *";
|
||||
}
|
||||
7
src/metadata/Features/Literals/HttpClients.cs
Normal file
7
src/metadata/Features/Literals/HttpClients.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Metadata.Features.Literals;
|
||||
|
||||
public static class HttpClients
|
||||
{
|
||||
public const string ImdbDataClientName = "imdb-data";
|
||||
public const string ImdbClientBaseAddress = "https://datasets.imdbws.com/";
|
||||
}
|
||||
Reference in New Issue
Block a user