add soundcloud module
This commit is contained in:
parent
1f32c21363
commit
6b25a5f2a1
4 changed files with 116 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue