-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
46 lines (40 loc) · 1.01 KB
/
config.php
File metadata and controls
46 lines (40 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Config ::::: YouTube Shorts Uploader
* Automatic | YT | Shorts | Uploader
* Multi Channel Supported
*
* :::::-
*
* @author BotolMehedi
* @email hello@mehedi.fun
* @version 1.0.1
*/
$channels = [];
$jsonFile = __DIR__ . '/channels.json';
if (file_exists($jsonFile)) {
$channels = json_decode(file_get_contents($jsonFile), true);
if ($channels === null) {
die('Error: Failed to decode channels.json. Check JSON syntax.');
}
} else {
die('Error: channels.json not found.');
}
return [
// Config ::::: YT DATA API V3
'google' => [
'client_id' => '-------+++--------',
'client_secret' => '-------+++--------',
'redirect_uri' => '-------+++--------',
'api_key' => '-------+++--------',
],
// Global
'global' => [
'timezone' => 'Asia/Dhaka',
'logs_directory' => 'logs/',
'tokens_directory' => 'tokens/',
'videos_base_directory' => 'videos/',
],
// Channels
'channels' => $channels,
];