feat(downloader): download schedule from different source

This commit is contained in:
2026-09-04 22:54:18 +04:00
parent 3204c41fd5
commit 50a580b07c
15 changed files with 306 additions and 457 deletions
+2 -7
View File
@@ -38,13 +38,8 @@ impl AppState {
#[cfg(not(test))]
{
if let Some(url) = &env.schedule.url {
providers::EngelsPolytechnicUpdateSource::Url(url.clone())
} else {
providers::EngelsPolytechnicUpdateSource::GrabFromSite {
yandex_api_key: env.yandex_cloud.api_key.clone(),
yandex_func_id: env.yandex_cloud.func_id.clone(),
}
providers::EngelsPolytechnicUpdateSource::YandexDisk {
public_url: env.schedule.yandex_disk_url.clone(),
}
}
})