Move TVDB apikey to .env

This commit is contained in:
DariusIII
2019-11-20 21:50:42 +01:00
parent b7983393da
commit 5477bf3e6b
4 changed files with 11 additions and 2 deletions
+1
View File
@@ -129,6 +129,7 @@ IGDB_KEY=
TMDB_APIKEY=
TMDB_CACHE=false
TMDB_LOG=false
TVDB_APIKEY=
TEMP_UNRAR_PATH=
TEMP_UNZIP_PATH=
+1 -2
View File
@@ -12,7 +12,6 @@ use CanIHaveSomeCoffee\TheTVDbAPI\TheTVDbAPI;
*/
class TVDB extends TV
{
private const TVDB_IMAGES_URL = 'https://www.thetvdb.com/banners';
private const TVDB_API_KEY = '31740C28BAC74DEF';
private const MATCH_PROBABILITY = 75;
@@ -57,7 +56,7 @@ class TVDB extends TV
// Check if we can get the time for API status
// If we can't then we set local to true
try {
$this->token = $this->client->authentication()->login(self::TVDB_API_KEY);
$this->token = $this->client->authentication()->login(config('tvdb.api_key'));
} catch (UnauthorizedException $error) {
$this->colorCli->warning('Could not reach TVDB API. Running in local mode only!', true);
$this->local = true;
+1
View File
@@ -1,4 +1,5 @@
2019-11-20 DariusIII
* Chg: Move TVDB apikey to .env
* Fix: Fix Trakt genres error
* Fix: Fix wrong url string in viewanime template
2019-11-19 DariusIII
+8
View File
@@ -0,0 +1,8 @@
<?php
return [
/*
* Api key
*/
'api_key' => env('TVDB_APIKEY', ''),
];