feat: add Dailymotion + Reddit downloader endpoints via yt-dlp
Deploy Scraper / build-and-deploy (push) Canceled after 0s

New platforms from Shirokami-style downloadter set:
- /download/dailymotion: real MP4/HLS streams (288p up to 2160p)
- /download/reddit: real v.redd.it HLS media for public posts
- detect + all-in-one dispatch updated

Both verified working from VPS with real URLs.
This commit is contained in:
asepharyana
2026-09-01 18:05:35 +07:00
parent 4dee99cc43
commit 7850b5fa03
4 changed files with 282 additions and 0 deletions
+16
View File
@@ -195,6 +195,22 @@ pub async fn download_soundcloud(
Ok(Json(DownloadResponse::ok(result)))
}
/// Handler for _dailymotion.
pub async fn download_dailymotion(
Query(params): Query<DownloadParams>,
) -> Result<Json<DownloadResponse>, AppError> {
let result = use_cases::download_dailymotion(&params.url).await?;
Ok(Json(DownloadResponse::ok(result)))
}
/// Handler for _reddit.
pub async fn download_reddit(
Query(params): Query<DownloadParams>,
) -> Result<Json<DownloadResponse>, AppError> {
let result = use_cases::download_reddit(&params.url).await?;
Ok(Json(DownloadResponse::ok(result)))
}
/// Handler for _bilibili.
pub async fn download_bilibili(
Query(params): Query<DownloadParams>,
+8
View File
@@ -236,6 +236,14 @@ pub fn build_router(app_state: Arc<AppState>) -> anyhow::Result<Router> {
"/download/soundcloud",
axum::routing::get(crate::presentation::handler::downloader::download_soundcloud),
)
.route(
"/download/dailymotion",
axum::routing::get(crate::presentation::handler::downloader::download_dailymotion),
)
.route(
"/download/reddit",
axum::routing::get(crate::presentation::handler::downloader::download_reddit),
)
.route(
"/download/bilibili",
axum::routing::get(crate::presentation::handler::downloader::download_bilibili),