Coder Social home page Coder Social logo

vlacour97 / alldebrid-watcher Goto Github PK

View Code? Open in Web Editor NEW
26.0 4.0 3.0 221 KB

Automatic downloader for alldebrid

License: Other

Makefile 1.15% Dockerfile 0.18% JavaScript 0.67% TypeScript 98.00%
alldebrid downloadfolder torrent-folder torrents npm docker watcher radarr sonarr lidarr

alldebrid-watcher's Issues

Server to Client, 1 file only torrents

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?

Download file with another downloader

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.

Notification problem

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.

dont work

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.

Just a post to say it works flawlessly

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 !

Synchronous downloads

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.

Is it working ?

Hello,
i tried your script on docker...
i put the .torrent on the folder but nothing is sent to alldebrid

best rgds
Jo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.