vlacour97 / alldebrid-watcher Goto Github PK
View Code? Open in Web Editor NEWAutomatic downloader for alldebrid
License: Other
Automatic downloader for alldebrid
License: Other
Probably pointless posting this, as it looks like the project is sadly dead.
I have noticed torrents aren't picked up from AllDebrid if the torrent contained more than one file. Is there any way to alter this?
Hi
Would it be possible to add an option to choose to have only one "download started" notification and only one "file(s) downloaded" notification when a torrent have several files ?
It can become overwhelming when there are dozens (or hundreds) of files
Thanks a lot
the plugin is great, but the download tracking is awesome.
Would it be possible to send the download links to an external source (Transmission, Synology downloadStation, ...)
Or indicate in the code where we can try to do it.
Hello,
I've noticed an error in the code. When I follow the documentation and run docker run -v path/to/torrent:/torrents -v path/to/download:/downloads -e ALLDEBRID_TOKEN=allbredid-token vlacour97/alldebrid-watcher
.
The container runs fine until it tries to download the file, at which point I get this error:
yarn run v1.22.19
$ ts-node index.ts
Application started
The file "/torrents/ubuntu-23.04-desktop-amd64.iso.torrent" has been watched on your server
The file "ubuntu-23.04-desktop-amd64.iso" has been debrided on your server
The file "ubuntu-23.04-desktop-amd64.iso" is being downloaded on your server
/app/src/notifier/stdout-notifier.ts:26
process.stdout.clearLine(0);
^
TypeError: process.stdout.clearLine is not a function
at StdoutNotifier.notifyOnDownloadProgress (/app/src/notifier/stdout-notifier.ts:26:24)
at NotifierStrategy.notifyOnDownloadProgress (/app/src/notifier/notifier-strategy.ts:81:58)
at DownloadFile.<anonymous> (/app/src/kernel.ts:91:89)
at EventEmitter.<anonymous> (/app/src/file/download-file.ts:39:59)
at EventEmitter.emit (node:events:512:28)
at EventEmitter.emit (node:domain:489:12)
at Request.<anonymous> (/app/src/downloader/filesystem-downloader.ts:66:30)
at Request.emit (node:events:512:28)
at Request.emit (node:domain:489:12)
at reportState (/app/node_modules/request-progress/index.js:83:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I was able to fix the problem by modifying the file app/src/notifier/stdout-notifier.ts
.
In this file, I added import * as readline from "readline";
and modified the notifyOnDownloadProgress() method to:
notifyOnDownloadProgress(downloadFile: DownloadFile, progress: number): void {
readline.clearLine(process.stdout, 0)
readline.cursorTo(process.stdout, 0, null)
process.stdout.write(`Downloading of file "${downloadFile.file.filename}": ${progress}%\r`);
}
After making these modifications, I no longer received the error message.
npm install ALLDEBRID_TOKEN=allbredid-token
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "ALLDEBRID_TOKEN=allbredid-token" of package "ALLDEBRID_TOKEN=allbredid-token": Tags may not have any characters that encodeURIComponent encodes.
To anyone arriving in this GitHub and wondering if it works looking at the issues : yes it does !
Just installed on a Synology with the docker GUI and it does what it advertises beautifully. Be it one torrent with one file or one torrent with several files, it works as intended.
I was afraid it would also download files I manually upload on the alldebrid website and thanksfully it doesn’t.
This is perfect for me
The only minor thing is that the pushover notification “download started” arrives when the file download is completed
Many many thanks to the dev !
Create website with sphinx builder for purpose clear documentation
https://www.sphinx-doc.org/en/master/index.html
Synchronous downloads would be a nice feature. I think I'm getting rate limited by alldebrid when trying to download a torrent with many large files.
Hello,
i tried your script on docker...
i put the .torrent on the folder but nothing is sent to alldebrid
best rgds
Jo
Hi
As the title says, when the last download related to a torrent is completed, it would be great for the app to delete the torrent file from the HDD and remove the torrent from alldebrid website, so there is no maintenance to do manually
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.