diff --git a/config/default.toml b/config/default.toml index 9cc0f7e..b598e50 100644 --- a/config/default.toml +++ b/config/default.toml @@ -11,6 +11,7 @@ enabled = true #proxy = "" [jobs] -[youtube_session] + +[jobs.youtube_session] po_token_enabled = true frequency = "*/5 * * * *" \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index e3afebb..3e9cb02 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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 () => {