torrent-to-pixeldrain
Version:
Allows you to download a torrent and upload it to pixeldrain.com
17 lines • 750 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.TorrentToUplodable = void 0;
const uploadabledirectory_1 = require("../uploadable-types/uploadabledirectory");
const uploadablefile_1 = require("../uploadable-types/uploadablefile");
class TorrentToUplodable {
static convert(torrent, pixeldrainService) {
if (torrent.fileCount > 1) {
return new uploadabledirectory_1.UploadableDirectory(torrent.downloadedPath, torrent.name, pixeldrainService);
}
else {
return new uploadablefile_1.UploadableFile(torrent.filePath, torrent.name, pixeldrainService);
}
}
}
exports.TorrentToUplodable = TorrentToUplodable;
//# sourceMappingURL=torrenttouploadable.js.map
;