vajira-torrent-downloader
v1.0.6
Published
An automated pipeline tracker utilities system that converts public torrent files into magnets, loads them to Seedr cloud, extracts the streaming links down onto disk, and automatically purges the bucket workspace.
Maintainers
Readme
🧲 vajira-torrent-downloader
An automated utility package to programmatically stream cloud storage assets down via automated conversions using backend Seedr endpoints.
📥 Installation
npm install vajira-torrent-downloader
📈 Example code
const { downloadSeedrTorrent } = require('vajira-torrent-downloader');
async function testPackage() {
console.log("🚀 Initializing Seedr Automated Pipeline Test...");
// Target video torrent file URL
const targetTorrentUrl = "https://yts.bz/torrent/download/2C29E0910641016B7F8286F8F8F3090946FB4A53";
// Configuration Settings Mapping
const config = {
email: "put your seedr email",
password: "put your seedr password"
};
try {
console.log("🔄 Step 1: Sending URL and credentials to package module...");
// Double check that the function was imported properly before running it
if (typeof downloadSeedrTorrent !== 'function') {
throw new Error("Import verification failed. 'downloadSeedrTorrent' is still undefined inside 'vajira-torrent-downloader' exports.");
}
const result = await downloadSeedrTorrent(targetTorrentUrl, config);
if (result) {
console.log("\n==============================================");
console.log("🎉 TEST SUCCESSFUL!");
console.log("==============================================");
console.log(`📌 File Name: ${result.fileName}`);
console.log(`📌 Seedr URL: ${result.fileUrl}`);
console.log(`📌 Folder ID: ${result.folderId}`);
console.log("==============================================\n");
} else {
console.log("❌ Test finished but returned no object layout.");
}
} catch (error) {
console.error("\n💥 Pipeline Test Encountered A Critical Failure:");
console.error(`Error Message: ${error.message}`);
}
}
testPackage();
📈 Output Search
🚀 Initializing Seedr Automated Pipeline Test...
🔄 Step 1: Sending URL and credentials to package module...
🔄 Step 1: Converting Torrent URL into a dynamic Magnet link...
🎯 Instant Extraction: Found InfoHash [2C29E0910641016B7F8286F8F8F3090946FB4A53]. Bypassing external networks...
🔒 Step 2: Logging into Seedr system endpoints...
☁️ Step 3: Pushing magnet hash to Seedr Cloud...
⏳ Step 4: Monitoring backend server cache balance...
⏳ Waiting for cloud distribution to hit 100% (Attempt 1/20)...
✅ Cache Hit! Target found: [The Movie Title Name].
==================================================
TITLE: The Movie Title Name
DIRECT URL: https://direct-download-link-from-seedr.com/stream/file...
==================================================
⏱️ Waiting exactly 10 seconds before deleting file from Seedr cloud...
🧹 Step 5: Wiping video directory tree from Seedr cloud balance...
==============================================
🎉 TEST SUCCESSFUL!
==============================================
📌 File Name: The Movie Title Name
📌 Seedr URL: https://direct-download-link-from-seedr.com/stream/file...
📌 Folder ID: 987654321
==============================================