fixing toml

This commit is contained in:
Emilien Devos 2024-10-23 23:37:36 +02:00
parent 2a9a65f6d7
commit 530b58ee92
2 changed files with 3 additions and 2 deletions

View file

@ -11,6 +11,7 @@ enabled = true
#proxy = ""
[jobs]
[youtube_session]
[jobs.youtube_session]
po_token_enabled = true
frequency = "*/5 * * * *"

View file

@ -10,7 +10,7 @@ const konfigStore = await konfigLoader();
let innertubeClient: Innertube;
if (konfigStore.get("jobs.po_token.enabled") as boolean) {
if (konfigStore.get("jobs.youtube_session.enabled") as boolean) {
innertubeClient = await Innertube.create({ retrieve_player: false });
innertubeClient = await poTokenGenerate(innertubeClient, konfigStore);
Deno.cron("regenerate poToken", konfigStore.get("jobs.youtube_session.frequency") as string, async () => {