Coder Social home page Coder Social logo

patheticgeek / torrent-aio-bot Goto Github PK

View Code? Open in Web Editor NEW
311.0 23.0 465.0 1.19 MB

A bot for searching and downloading torrents easily with website and telegram bot

JavaScript 70.45% CSS 28.71% HTML 0.85%
telegram-bot torrent google-drive in-portfolio

torrent-aio-bot's Introduction

Torrent all-in-one bot

Lorem ipsum i am too lazy figure what it does yourself

You might be lazy too so here ya go:

Deploy

Please dont start a test torrent download on my website it works you dont need to just wastes my drive space. Be careful when adding torrents to my deployment as it is deployed everytime i commit code here so your downloads may be interrupted.

The search section is currently unmaintained due to the inconsistency between proxy sites and their uptimes

TODO after deploy

To disable website

If you only want telegram bot to be workinh set value of DISABLE_WEB env var to true.

To get torrent download working:

Set a variable with key "SITE" and value is the link of your site. eg. "https://<project name>.herokuapp.com". This is important to keep bot alive or server will stop after 30 min of inactivity.

To start a torrent bot:

Set a enviorment variable with key "TELEGRAM_TOKEN" and token of your bot as value. How to get token To set a enviorment variable go to heroku dashboard open the app then go to Settings > Config vars > Reveal Config vars.

To get search working:

The library used for web scrapping the torrent sites requires a custom buildpack on heroku. By default the search will happen on your deployment and you will need to configure the buildpack as described below. But if you don't want to do that you can specify and env SEARCH_SITE and set value to https://torrent-aio-bot.herokuapp.com/ . The frwd slash at end is necessary. This will make all the searches go thru my deployment and you don't need to configure buildpack.

Go to the build packs section in settings and click add buildpack and enter "https://github.com/jontewks/puppeteer-heroku-buildpack.git" as buildpack url then click save changes. And then do a dummy git commit so that heroku will buid it using the buildpack this time. Then set the SEARCH_SITE env to same value as SITE.

To get gdrive upload:

  1. Go to https://developers.google.com/drive/api/v3/quickstart/nodejs and click on Enable the Drive API copy client id and set an enviorment variable in heroku with name CLIENT_ID then copy client secret and set another env named CLIENT_SECRET.
  2. Goto https://<project name>.herokuapp.com/drivehelp and paste your client id and secret and click "Get auth code", it will redirect you to login and you'll get a auth code after login paste that auth code in the auth code feild and click "Generate token" it'll give you a token. now set these as env variable CLIENT_ID, CLIENT_SECRET, AUTH_CODE and TOKEN.
  3. By default files are uploaded in the root of drive if you dont want to upload in root folder make a folder copy its id and set a env var GDRIVE_PARENT_FOLDER and value id of desired folder. The folder id will be the last part of the url such as in url "https://drive.google.com/drive/folders/1rpk7tGWs_lv_kZ_W4EPaKj8brfFVLOH-" the folder id is "1rpk7tGWs_lv_kZ_W4EPaKj8brfFVLOH-".
  4. If you want team drive support open your teamdrive and copy the folder id from url eg. https://drive.google.com/drive/u/0/folders/0ABZHZpfYfdVCUk9PVA this is link of a team drive copy the last part "0ABZHZpfYfdVCUk9PVA" this will be your GDRIVE_PARENT_FOLDER. If you want them in a folder in teamdrive open the folder and use that folder's id instead.
  5. You're good to go. The gdrive status will be shown in gdrive.txt file when you click Open on the website downloads page. Bot wil automatically send you drive link when its uploaded.

Use this torrent for testing or when downloading to setup drive it is well seeded and downloads in ~10s

magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny

Changing the sites used for searching

To change the pirate bay site, visit the site you would like to use search something there, copy the url eg. https://thepiratebay.org/search/whatisearched and replace the search with {term} so the url looks like https://thepiratebay.org/search/{term} ans set this to env var PIRATEBAY_SITE

Same, if you want to change the limetorrents site visit the site you want to use and search for something, then replace the thing you searched for with {term} so final url looks like https://limetorrents.at/search?search={term} and set this value to env var LIMETORRENT_SITE

Simillarly the enviorment variable for 1337x is O337X_SITE

API Endpoints

Prefix: https://<project name>.herokuapp.com/api/v1

For downloading:

Endpoint Params Return
/torrent/download link: string { error: bool, link: string, infohash: string errorMessage?: string }
/torrent/list none {error: bool, torrents: [ torrent, torrent, ... ]}
/torrent/remove link: string { error: bool, errorMessage?: string }
/torrent/status link: string {error: bool, status: torrent, errorMessage?: string}

link is magnet uri of the torrent

torrent:  {
  magnetURI: string,
  speed: string,
  downloaded: string,
  total: string,
  progress: number,
  timeRemaining: number,
  redableTimeRemaining: string,
  downloadLink: string,
  status: string,
  done: bool
}

For searching:

Endpoint Params Return
/search/{site} query: string, site?: string {error: bool, results: [ result, ... ], totalResults: number, }
/details/{site} query: string {error: bool, torrent }

query is what you want to search for or the link of the torrent page site is the link to homepage of proxy to use must have a trailing '/'

result: {
  name: string,
  link: string,
  seeds: number,
  details: string
}

torrent: {
  title: string,
  info: string,
  downloadLink: string,
  details: [ { infoTitle: string, infoText: string } ]
}

sites available: piratebay, 1337x, limetorrent

torrent-aio-bot's People

Contributors

dependabot[bot] avatar patheticgeek avatar rythenglyth avatar sobuj53 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

torrent-aio-bot's Issues

Bot,search not working

The telegram bot and search is not working and can you please add support for .torrent files too.

Telegram bot not working

Log

2020-06-15T12:10:23.248361+00:00 app[web.1]: Unhandled rejection Error: ETELEGRAM: 400 Bad Request: bad webhook: Failed to resolve host: Name or service not known
2020-06-15T12:10:23.248371+00:00 app[web.1]: at /app/node_modules/node-telegram-bot-api/src/telegram.js:283:15
2020-06-15T12:10:23.248372+00:00 app[web.1]: at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
2020-06-15T12:10:23.248373+00:00 app[web.1]: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:547:31)
2020-06-15T12:10:23.248373+00:00 app[web.1]: at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:604:18)
2020-06-15T12:10:23.248374+00:00 app[web.1]: at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:649:10)
2020-06-15T12:10:23.248374+00:00 app[web.1]: at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:729:18)
2020-06-15T12:10:23.248375+00:00 app[web.1]: at _drainQueueStep (/app/node_modules/bluebird/js/release/async.js:93:12)
2020-06-15T12:10:23.248375+00:00 app[web.1]: at _drainQueue (/app/node_modules/bluebird/js/release/async.js:86:9)
2020-06-15T12:10:23.248375+00:00 app[web.1]: at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:102:5)
2020-06-15T12:10:23.248376+00:00 app[web.1]: at Immediate.Async.drainQueues [as _onImmediate] (/app/node_modules/bluebird/js/release/async.js:15:14)
2020-06-15T12:10:23.248377+00:00 app[web.1]: at processImmediate (internal/timers.js:456:21)

Addition to deploy option

Could you add GDRIVE_PARENT_FOLDER nd other parameters when clicked deploy to heroku ??
Only those which may be variable.

Improvement

HIII ur bot is too good...

But i will like to mention one improvement

That can you make the "Magnet Uri" of the status section to monospace so that it is easier to copy the magnet for cancelling of torrents

Hope u would see to this

Thanks..

Telegram bot not working.

No response from telegram bot eventhough bot token is configured. Here's the logs, might help.

2020-06-02T07:17:08.639941+00:00 app[web.1]: Using api:  https://torrent-aio-bot.herokuapp.com/
2020-06-02T07:17:08.654627+00:00 app[web.1]: Bot ready
2020-06-02T07:17:08.674429+00:00 app[web.1]: > Running on http://localhost:38036
2020-06-02T07:17:08.675236+00:00 app[web.1]:
2020-06-02T07:17:08.675237+00:00 app[web.1]: Gdrive client up
2020-06-02T07:17:09.195355+00:00 heroku[web.1]: State changed from starting to up
2020-06-02T07:17:09.051370+00:00 app[web.1]: Unhandled rejection Error: ETELEGRAM: 400 Bad Request: bad webhook: Failed to resolve host: Name or service not known
2020-06-02T07:17:09.051410+00:00 app[web.1]: at /app/node_modules/node-telegram-bot-api/src/telegram.js:283:15
2020-06-02T07:17:09.051411+00:00 app[web.1]: at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
2020-06-02T07:17:09.051413+00:00 app[web.1]: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:547:31)
2020-06-02T07:17:09.051419+00:00 app[web.1]: at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:604:18)
2020-06-02T07:17:09.051419+00:00 app[web.1]: at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:649:10)
2020-06-02T07:17:09.051420+00:00 app[web.1]: at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:729:18)
2020-06-02T07:17:09.051420+00:00 app[web.1]: at _drainQueueStep (/app/node_modules/bluebird/js/release/async.js:93:12)
2020-06-02T07:17:09.051420+00:00 app[web.1]: at _drainQueue (/app/node_modules/bluebird/js/release/async.js:86:9)
2020-06-02T07:17:09.051421+00:00 app[web.1]: at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:102:5)
2020-06-02T07:17:09.051421+00:00 app[web.1]: at Immediate.Async.drainQueues [as _onImmediate] (/app/node_modules/bluebird/js/release/async.js:15:14)
2020-06-02T07:17:09.051422+00:00 app[web.1]: at processImmediate (internal/timers.js:456:21)

Not uploading to Gdrive

i have kept client id,secret,auth code,token,gdrive, telegram token parent but file is not getting uploaded at gdrive....im only getting heroku download link in bot..posting log please help i am very new to these.Thank You

2020-03-27T20:17:01.793050+00:00 heroku[router]: at=info method=POST path="/api/v1/torrent/bot" host=jj.herokuapp.com request_id=177fd8f6-34d0-4b4b-ab44-bbcc3cfd02fd fwd="91.108.6.70" dyno=web.1 connect=0ms service=27ms status=200 bytes=224 protocol=https
2020-03-27T20:18:53.918696+00:00 app[web.1]: Uploading folder to gdrive: Big Buck Bunny
2020-03-27T20:18:54.023050+00:00 app[web.1]: (node:23) UnhandledPromiseRejectionWarning: Error: File not found: https://drive.google.com/drive/u/1/folders/1BC4TYce-O07UwcfyS7xg94stAmo6mKkZ.
2020-03-27T20:18:54.023053+00:00 app[web.1]: at Gaxios. (/app/node_modules/gaxios/build/src/gaxios.js:73:27)
2020-03-27T20:18:54.023054+00:00 app[web.1]: at Generator.next ()
2020-03-27T20:18:54.023054+00:00 app[web.1]: at fulfilled (/app/node_modules/gaxios/build/src/gaxios.js:16:58)
2020-03-27T20:18:54.023055+00:00 app[web.1]: at runMicrotasks ()
2020-03-27T20:18:54.023056+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-03-27T20:18:54.023112+00:00 app[web.1]: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2020-03-27T20:18:54.023142+00:00 app[web.1]: (node:23) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Telegram Issue

I got the bot on the telegram but the bot is not responding.... I am sending the magnet link and then reply the magnet link by "/download" command but then there is no response from the bot. If i am doing anything wrong Please can you guide me ......

By the way the web wrapper works and uploads the fileto the drive...Only the telegram bot is not working

Help would be appreciated this is my first bot that i made on telegram

Google Drive download indefinite file size & Direct video stream playback 'seek' issue (related)

I tried copying the link of video files from the drive tab and played it directly without downloading first through VLC Media Player. Fortunately, the videos played fine.

Note: I changed the URL encoding of google drive links in my fork as VLC wont accept '[' and ']' characters and as a result will have playback error, I replaced it with %5B for '[' and %5D for ']'

Now the issue is, you can't seek the playback time. My thoughts of this is that because the file size given by google drive is INDEFINITE as you can notice when you download a file in the drive tab.

So, is it possible for any fix for this? If only the file size is fixed when trying to download from drive, the playback seek would be resolved also.

This is very helpful for users who prefer to stream directly the media files via external players rather than downloading it.

.torrent file

Well , telegram bot is not responding .
But the site is working good , one problem is that one can't add .torrent files .
Please add the feature to add torrent with its .torrent file .

TOKEN

I didn't get the token starting with {} can you please check the log of mine and thell me where the token is Let the process restart one more time. This time it will log a token, copy its value including { } and set a env var named TOKEN with that value.

TOKEN issue!!

From where i should get the token sir

in logs it is showing

TOKEN env not set.
GDRIVE_PARENT_FOLDER set to 0ANWwa1L-slrZUk9PVA

Commands Of TG

Saar what are the commands for telegram I have set telegram bot token in config vars and tried /start /help bot is not replying. So what are the available commands

Direct & multiple links support

Hey, You are doing a great job ๐Ÿ–ค๐Ÿ‘๐Ÿป.

Direct links support
We can download files from direct link too.
Multiple links support
We can add multiple links at a time like each link in a separate lines. Like AriaNG.

Telegram bot error

Why my telegram bot not process command /download (magnet) but log herokuapp show search/api/v1 ?
no one command working this any get wrong for my env var? please help
sorry for bad eng :(

How to use the Telegram bot ?

Whether i have to chat with the bot or Add it into a group to Give commands..
which commands i have to give to it to Start or list downloads

Reporting some bugs & suggetions

1.in Telegram bot,torrent downloading status do not automatically updating

2.Search option still not working.showing could not connect to site error.

3.need to add an option for telegram bot usage only for the owner (using telegram id in config vars)

4.Gdrive link recieving along with the heroku link.it will be very helpful.

5.TEAM DRIVE SUPPORT for gdrive.

How to get AUTH_CODE

I did not understand how to restart the process 2 times and how to get the AUTH_CODE.
Please explain in detail.

"SET SITE ENVIORMENT VARIABLE" error

after complete torrent magnet leech & using comment /torrent download "startedcompletemagnet" getting error like bellow

`Name: evilangel.20.01.27.gabbie.carter.gabbies.pussy.eaten.and.fucked.mp4

Download Link:
SET SITE ENVIORMENT VARIABLE. READ DOCSapi/v1/downloads/b54720a505d5f8d23cd918b2f407e7e3cb3ff92d/EvilAngel.20.01.27.Gabbie.Carter.Gabbies.Pussy.Eaten.And.Fucked..480p.MP4-XXX/evilangel.20.01.27.gabbie.carter.gabbies.pussy.eaten.and.fucked.mp4`

Is there any time limt?

I had added torrent 5 hour ago but now i can't see it on my download list nor it was uploaded to my destination folder.

APP in Heroku Sleep

Hi

  1. After one Day Deployment in Heroku APP Sleep and Web Version isnt Working But bot Work Properly.

image

image

  1. How to See and Manage Downloaded Files in Heroku Store for Managing and Deleting After UPloaded to GDrive

Thanks For This Repo

Google Drive download issue

Issue encountered while trying to download in GDrive tab. It instantly downloads files with 0 file size. Logs:

2020-06-02T10:08:00.998307+00:00 app[web.1]: error  GaxiosError: [object Object]
2020-06-02T10:08:00.998318+00:00 app[web.1]: at Gaxios.<anonymous> (/app/node_modules/gaxios/build/src/gaxios.js:73:27)
2020-06-02T10:08:00.998319+00:00 app[web.1]: at Generator.next (<anonymous>)
2020-06-02T10:08:00.998320+00:00 app[web.1]: at fulfilled (/app/node_modules/gaxios/build/src/gaxios.js:16:58)
2020-06-02T10:08:00.998320+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:97:5) {
2020-06-02T10:08:00.998321+00:00 app[web.1]: response: {
2020-06-02T10:08:00.998322+00:00 app[web.1]: config: {
2020-06-02T10:08:00.998324+00:00 app[web.1]: url: 'https://www.googleapis.com/drive/v3/files/12D8zv7zHgXQFmWKGBZrkab3E-GI1Omt1?alt=media',
2020-06-02T10:08:00.998324+00:00 app[web.1]: method: 'GET',
2020-06-02T10:08:00.998325+00:00 app[web.1]: responseType: 'stream',
2020-06-02T10:08:00.998326+00:00 app[web.1]: paramsSerializer: [Function],
2020-06-02T10:08:00.998326+00:00 app[web.1]: headers: [Object],
2020-06-02T10:08:00.998327+00:00 app[web.1]: params: [Object: null prototype],
2020-06-02T10:08:00.998327+00:00 app[web.1]: validateStatus: [Function]
2020-06-02T10:08:00.998328+00:00 app[web.1]: },
2020-06-02T10:08:00.998328+00:00 app[web.1]: data: PassThrough {
2020-06-02T10:08:00.998328+00:00 app[web.1]: _readableState: [ReadableState],
2020-06-02T10:08:00.998329+00:00 app[web.1]: readable: true,
2020-06-02T10:08:00.998329+00:00 app[web.1]: _events: [Object: null prototype],
2020-06-02T10:08:00.998330+00:00 app[web.1]: _eventsCount: 2,
2020-06-02T10:08:00.998330+00:00 app[web.1]: _maxListeners: undefined,
2020-06-02T10:08:00.998331+00:00 app[web.1]: _writableState: [WritableState],
2020-06-02T10:08:00.998331+00:00 app[web.1]: writable: false,
2020-06-02T10:08:00.998332+00:00 app[web.1]: allowHalfOpen: true,
2020-06-02T10:08:00.998332+00:00 app[web.1]: _transformState: [Object],
2020-06-02T10:08:00.998332+00:00 app[web.1]: [Symbol(kCapture)]: false
2020-06-02T10:08:00.998333+00:00 app[web.1]: },
2020-06-02T10:08:00.998334+00:00 app[web.1]: headers: {
2020-06-02T10:08:00.998335+00:00 app[web.1]: 'alt-svc': 'h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',
2020-06-02T10:08:00.998335+00:00 app[web.1]: 'cache-control': 'private, max-age=0',
2020-06-02T10:08:00.998336+00:00 app[web.1]: connection: 'close',
2020-06-02T10:08:00.998336+00:00 app[web.1]: 'content-length': '432',
2020-06-02T10:08:00.998337+00:00 app[web.1]: 'content-type': 'application/json; charset=UTF-8',
2020-06-02T10:08:00.998338+00:00 app[web.1]: date: 'Tue, 02 Jun 2020 10:08:00 GMT',
2020-06-02T10:08:00.998338+00:00 app[web.1]: expires: 'Tue, 02 Jun 2020 10:08:00 GMT',
2020-06-02T10:08:00.998338+00:00 app[web.1]: server: 'UploadServer',
2020-06-02T10:08:00.998339+00:00 app[web.1]: vary: 'Origin, X-Origin',
2020-06-02T10:08:00.998340+00:00 app[web.1]: 'x-guploader-uploadid': 'AAANsUm9gI_RdxfBr_MjKTvzm6DAWKGkR-VXeDv5jqb1FvHLz3vhUeoHVjxrkuZSlDrdC5_Q1OD11ssQKciyEeDouHk'
2020-06-02T10:08:00.998340+00:00 app[web.1]: },
2020-06-02T10:08:00.998341+00:00 app[web.1]: status: 403,
2020-06-02T10:08:00.998341+00:00 app[web.1]: statusText: 'Forbidden'
2020-06-02T10:08:00.998342+00:00 app[web.1]: },
2020-06-02T10:08:00.998342+00:00 app[web.1]: config: {
2020-06-02T10:08:00.998342+00:00 app[web.1]: url: 'https://www.googleapis.com/drive/v3/files/12D8zv7zHgXQFmWKGBZrkab3E-GI1Omt1?alt=media',
2020-06-02T10:08:00.998343+00:00 app[web.1]: method: 'GET',
2020-06-02T10:08:00.998343+00:00 app[web.1]: responseType: 'stream',
2020-06-02T10:08:00.998343+00:00 app[web.1]: paramsSerializer: [Function],
2020-06-02T10:08:00.998344+00:00 app[web.1]: headers: {
2020-06-02T10:08:00.998344+00:00 app[web.1]: 'Accept-Encoding': 'gzip',
2020-06-02T10:08:00.998345+00:00 app[web.1]: 'User-Agent': 'google-api-nodejs-client/0.7.2 (gzip)',
2020-06-02T10:08:00.998346+00:00 app[web.1]: Authorization: 'Bearer ya29.a0AfH6SMDFBmVR1AOlcLn8vjeGNWBupjNW5SSo1TC38231t8wqNhUOxG8x63IKO5l_1yrSj4Z0x32Qx1xqH6pbwN_1kHq8bDmdj_8ECsd4E8EFGHWaApAmsywMbdhS_x4-UH1bFT9plZ20nrWxAFHJYvCngd1A7L5Q-jc'
2020-06-02T10:08:00.998347+00:00 app[web.1]: },
2020-06-02T10:08:00.998347+00:00 app[web.1]: params: [Object: null prototype] { alt: 'media' },
2020-06-02T10:08:00.998347+00:00 app[web.1]: validateStatus: [Function]
2020-06-02T10:08:00.998348+00:00 app[web.1]: },
2020-06-02T10:08:00.998348+00:00 app[web.1]: code: '403'
2020-06-02T10:08:00.998348+00:00 app[web.1]: }

Request for Cloning Gdrive links feature

Hello! I really love this bot, but I'd really love it if this bot had the ability to clone gdrive links. I copy a lot of stuff from gdrive so this feature would make it easier for me. Please consider adding it! ๐Ÿ‘

Slow download speed?

Hi,
My download speed is very slow when I try to download on my PC. The torrent working well.
image

Heroku crashes every after torrent finished

Logs:

2020-06-02T10:24:02.839217+00:00 app[web.1]: events.js:292
2020-06-02T10:24:02.839226+00:00 app[web.1]: throw er; // Unhandled 'error' event
2020-06-02T10:24:02.839227+00:00 app[web.1]: ^
2020-06-02T10:24:02.839227+00:00 app[web.1]:
2020-06-02T10:24:02.839228+00:00 app[web.1]: Error: ENOTDIR invalid cwd /app/downloads/15f41c3a664e43184de2cb8563dcf0ba69fe5ac1/[Erai-raws] Princess Connect! Re-Dive - 09 [1080p][Multiple Subtitle].mkv
2020-06-02T10:24:02.839230+00:00 app[web.1]: at Glob._readdirError (/app/node_modules/glob/glob.js:592:21)
2020-06-02T10:24:02.839230+00:00 app[web.1]: at /app/node_modules/glob/glob.js:553:12
2020-06-02T10:24:02.839231+00:00 app[web.1]: at FSReqCallback.oncomplete (fs.js:155:23)
2020-06-02T10:24:02.839231+00:00 app[web.1]: Emitted 'error' event on Archiver instance at:
2020-06-02T10:24:02.839232+00:00 app[web.1]: at Archiver.onerror (/app/node_modules/readable-stream/lib/_stream_readable.js:640:52)
2020-06-02T10:24:02.839233+00:00 app[web.1]: at Archiver.emit (events.js:315:20)
2020-06-02T10:24:02.839233+00:00 app[web.1]: at Archiver.onGlobError (/app/node_modules/archiver/lib/core.js:636:10)
2020-06-02T10:24:02.839233+00:00 app[web.1]: at Glob.emit (events.js:315:20)
2020-06-02T10:24:02.839234+00:00 app[web.1]: at Glob._readdirError (/app/node_modules/glob/glob.js:595:14)
2020-06-02T10:24:02.839234+00:00 app[web.1]: at /app/node_modules/glob/glob.js:553:12
2020-06-02T10:24:02.839235+00:00 app[web.1]: at FSReqCallback.oncomplete (fs.js:155:23) {
2020-06-02T10:24:02.839236+00:00 app[web.1]: path: '/app/downloads/15f41c3a664e43184de2cb8563dcf0ba69fe5ac1/[Erai-raws] Princess Connect! Re-Dive - 09 [1080p][Multiple Subtitle].mkv',
2020-06-02T10:24:02.839237+00:00 app[web.1]: code: 'ENOTDIR'
2020-06-02T10:24:02.839238+00:00 app[web.1]: }
2020-06-02T10:24:03.118535+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-06-02T10:24:03.120734+00:00 app[web.1]: npm ERR! errno 1
2020-06-02T10:24:03.128865+00:00 app[web.1]: npm ERR! torrent-bot@1.0.0 start: `NODE_ENV=production node index.js`
2020-06-02T10:24:03.129514+00:00 app[web.1]: npm ERR! Exit status 1
2020-06-02T10:24:03.130126+00:00 app[web.1]: npm ERR!
2020-06-02T10:24:03.130669+00:00 app[web.1]: npm ERR! Failed at the torrent-bot@1.0.0 start script.
2020-06-02T10:24:03.131037+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-06-02T10:24:03.241402+00:00 app[web.1]:
2020-06-02T10:24:03.241757+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-06-02T10:24:03.241946+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2020-06-02T10_24_03_170Z-debug.log
2020-06-02T10:24:03.402446+00:00 heroku[web.1]: Process exited with status 1
2020-06-02T10:24:03.476745+00:00 heroku[web.1]: State changed from up to crashed

Display error

Hi,
Sir after downloading a file it shows nothing. No files inside a downloaded folder, it's happening with every torrent.

[Feature Request] Archive

Can you add an option for archiving (zip/tar) folder after download complete. It will be handy especially when you download a torrent that have too much small files.

dummy git commit

bro can you tell the system to run a dummy git commit for enable search

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.