feat: add Dailymotion + Reddit downloader endpoints via yt-dlp
Deploy Scraper / build-and-deploy (push) Canceled after 0s
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:
@@ -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(¶ms.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(¶ms.url).await?;
|
||||
Ok(Json(DownloadResponse::ok(result)))
|
||||
}
|
||||
|
||||
/// Handler for _bilibili.
|
||||
pub async fn download_bilibili(
|
||||
Query(params): Query<DownloadParams>,
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user