Skip to content

Commit 42bc7a5

Browse files
committed
feat: Enhance downloader with yt-dlp integration and improve content length handling for AllAnime URLs
1 parent 672ab8d commit 42bc7a5

4 files changed

Lines changed: 416 additions & 58 deletions

File tree

internal/api/enhanced.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,9 @@ func sanitizeFilename(name string) string {
383383

384384
// Basic download function (placeholder - integrate with your existing downloader)
385385
func downloadFromURL(url, filename string) error {
386-
// This is a placeholder - you would integrate this with your existing
387-
// downloader package functionality
388-
util.Debugf("Downloading from URL: %s to file: %s", url, filename)
389-
390-
// For now, just log the download intent
391-
// In a real implementation, you'd use the downloader package
392-
return nil
386+
// This is a placeholder that should fail to trigger fallback to the proper downloader
387+
util.Debugf("Enhanced API downloadFromURL is a placeholder - returning error to trigger fallback")
388+
return fmt.Errorf("enhanced download not implemented - use legacy downloader")
393389
}
394390

395391
// Legacy wrapper functions to maintain compatibility

0 commit comments

Comments
 (0)