fix: init Config

This commit is contained in:
Kristofers Solo 2025-10-28 18:25:32 +02:00
parent 928aa2fdae
commit 0c60a61dc1
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED
2 changed files with 6 additions and 1 deletions

View File

@ -62,7 +62,7 @@ pub fn global_config() -> Config {
}
impl YoutubeConfig {
const DEFAULT_POSTPROCESSOR_ARGS: &'static str = "ffmpeg:-vf setsar=1 -c:v libx264 -crf 20 -preset ultrafast -c:a aac -b:a 128k -movflags +faststart";
const DEFAULT_POSTPROCESSOR_ARGS: &'static str = "ffmpeg:-vf setsar=1 -c:v libx264 -crf 20 -preset veryfast -c:a aac -b:a 128k -movflags +faststart";
fn from_env() -> Self {
Self {

View File

@ -2,6 +2,7 @@ use dotenv::dotenv;
use teloxide::{prelude::*, respond};
use tg_relay_rs::{
comments::Comments,
config::Config,
handler::{Handler, create_handlers},
telemetry::setup_logger,
};
@ -23,6 +24,10 @@ async fn main() -> color_eyre::Result<()> {
.init()
.expect("failed to initialize comments");
Config::from_env()
.init()
.expect("failed to initialize comments");
let bot = Bot::from_env();
info!("bot starting");