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:
1 parent
4dee99cc43
commit
7850b5fa03
4 files changed
+282
No files matched your search
@@ -107,6 +107,14 @@ pub async fn download_soundcloud(url: &str) -> Result<DownloadResult, ScrapingEr
|
||||
DownloaderRepository::download_soundcloud(url).await
|
||||
}
|
||||
|
||||
pub async fn download_dailymotion(url: &str) -> Result<DownloadResult, ScrapingError> {
|
||||
DownloaderRepository::download_dailymotion(url).await
|
||||
}
|
||||
|
||||
pub async fn download_reddit(url: &str) -> Result<DownloadResult, ScrapingError> {
|
||||
DownloaderRepository::download_reddit(url).await
|
||||
}
|
||||
|
||||
pub async fn download_bilibili(url: &str) -> Result<DownloadResult, ScrapingError> {
|
||||
DownloaderRepository::download_bilibili(url).await
|
||||
}
|
||||
@@ -147,6 +155,10 @@ pub fn detect_platform(url: &str) -> String {
|
||||
"danbooru".to_string()
|
||||
} else if url.contains("soundcloud.com") {
|
||||
"soundcloud".to_string()
|
||||
} else if url.contains("dailymotion.com") {
|
||||
"dailymotion".to_string()
|
||||
} else if url.contains("reddit.com") || url.contains("redd.it") {
|
||||
"reddit".to_string()
|
||||
} else if url.contains("bilibili.com") || url.contains("b23.tv") {
|
||||
"bilibili".to_string()
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user