mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 00:01:21 +00:00
Move TVDB apikey to .env
This commit is contained in:
@@ -129,6 +129,7 @@ IGDB_KEY=
|
||||
TMDB_APIKEY=
|
||||
TMDB_CACHE=false
|
||||
TMDB_LOG=false
|
||||
TVDB_APIKEY=
|
||||
|
||||
TEMP_UNRAR_PATH=
|
||||
TEMP_UNZIP_PATH=
|
||||
|
||||
@@ -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,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
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
* Api key
|
||||
*/
|
||||
'api_key' => env('TVDB_APIKEY', ''),
|
||||
];
|
||||
Reference in New Issue
Block a user