diff --git a/.env.example b/.env.example
new file mode 100644
index 00000000..6cfd0e87
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,2 @@
+TVDB__APIKEY=
+THEMOVIEDB__APIKEY=
diff --git a/.gitignore b/.gitignore
index 694e9d6b..42235b8d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,9 @@ libtranscoder.so
libtranscoder.dylib
transcoder.dll
+video
+.env
+
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..ed6b8c58
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,36 @@
+version: "3.8"
+
+services:
+ kyoo:
+ build: .
+ restart: on-failure
+ environment:
+ - KYOO_DATADIR=/var/lib/kyoo
+ - BASICS__PUBLICURL=http://localhost:5000
+ - BASICS__MetadataInShow=false
+ - DATABASE__ENABLED=postgres
+ - DATABASE__CONFIGURATIONS__POSTGRES__SERVER=postgres
+ - DATABASE__CONFIGURATIONS__POSTGRES__USER ID=kyoo
+ - DATABASE__CONFIGURATIONS__POSTGRES__PASSWORD=kyooPassword
+ - TVDB__APIKEY=${TVDB__APIKEY}
+ - THEMOVIEDB__APIKEY=${THEMOVIEDB__APIKEY}
+ ports:
+ - "5000:5000"
+ depends_on:
+ - postgres
+ volumes:
+ - kyoo:/var/lib/kyoo
+ - ./video:/video
+ postgres:
+ image: "postgres"
+ restart: on-failure
+ environment:
+ - POSTGRES_USER=kyoo
+ - POSTGRES_PASSWORD=kyooPassword
+ volumes:
+ - db:/var/lib/postgresql/data
+
+volumes:
+ kyoo:
+ db:
+
diff --git a/docs/start/setting_up.md b/docs/start/setting_up.md
index 6a0b82ce..1feb6b8a 100644
--- a/docs/start/setting_up.md
+++ b/docs/start/setting_up.md
@@ -70,7 +70,7 @@ We are going to take a look at the fields you might want to change to tailor Kyo
- ```tvdb```
- ```apikey```: The API key that will be used to interact with the TVDB's API. See [there](https://thetvdb.com/api-information) to get one
-- ```the-moviedb```
+- ```themoviedb```
- ```apikey```: The API key that will be used to interact with TMDB's API. See [there](https://developers.themoviedb.org/3/getting-started/introduction) to get one
## Using a Container
diff --git a/src/Kyoo.Host.Generic/settings.json b/src/Kyoo.Host.Generic/settings.json
index 6c472a6e..bf5e6a4e 100644
--- a/src/Kyoo.Host.Generic/settings.json
+++ b/src/Kyoo.Host.Generic/settings.json
@@ -76,7 +76,7 @@
"tvdb": {
"apiKey": ""
},
- "the-moviedb": {
+ "themoviedb": {
"apiKey": ""
}
}
diff --git a/src/Kyoo.TheMovieDb/PluginTmdb.cs b/src/Kyoo.TheMovieDb/PluginTmdb.cs
index 72d16f19..e20149b5 100644
--- a/src/Kyoo.TheMovieDb/PluginTmdb.cs
+++ b/src/Kyoo.TheMovieDb/PluginTmdb.cs
@@ -48,7 +48,7 @@ namespace Kyoo.TheMovieDb
if (!Enabled)
{
logger.LogWarning("No API key configured for TheMovieDB provider. " +
- "To enable TheMovieDB, specify one in the setting the-moviedb:APIKEY ");
+ "To enable TheMovieDB, specify one in the setting themoviedb:APIKEY");
}
}
@@ -62,7 +62,7 @@ namespace Kyoo.TheMovieDb
public string Description => "A metadata provider for TheMovieDB.";
///
- public bool Enabled => !string.IsNullOrEmpty(_configuration.GetValue("the-moviedb:apikey"));
+ public bool Enabled => !string.IsNullOrEmpty(_configuration.GetValue("themoviedb:apikey"));
///
public Dictionary Configuration => new()
diff --git a/src/Kyoo.TheMovieDb/TheMovieDbOptions.cs b/src/Kyoo.TheMovieDb/TheMovieDbOptions.cs
index 7167c902..a4ddcc2c 100644
--- a/src/Kyoo.TheMovieDb/TheMovieDbOptions.cs
+++ b/src/Kyoo.TheMovieDb/TheMovieDbOptions.cs
@@ -26,7 +26,7 @@ namespace Kyoo.TheMovieDb.Models
///
/// The path to get this option from the root configuration.
///
- public const string Path = "the-moviedb";
+ public const string Path = "themoviedb";
///
/// The api key of TheMovieDb.