add soundcloud module

This commit is contained in:
JMARyA 2024-03-10 05:04:35 +01:00
parent 1f32c21363
commit 6b25a5f2a1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 116 additions and 0 deletions

View file

@ -2,6 +2,7 @@ use std::path::PathBuf;
mod config;
mod db;
mod soundcloud;
mod youtube;
mod yt_dlp;
@ -52,6 +53,14 @@ fn main() {
config.hoard.data_dir.join("youtube"),
))];
if let Some(sc_config) = config.soundcloud {
modules.push(Box::new(soundcloud::SoundCloudModule::new(
sc_config,
db.take_db(),
config.hoard.data_dir.join("youtube"),
)));
}
for yt_dlp_mod in config.yt_dlp.unwrap_or_default() {
let mod_name = yt_dlp_mod
.name