patheticGeek / torrent-aio-bot

A bot for searching and downloading torrents easily with website and telegram bot
316 stars 463 forks source link

Reporting some bugs & suggetions #15

Closed rsoorajs closed 3 years ago

rsoorajs commented 4 years ago

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.

patheticGeek commented 4 years ago
  1. it is on my list to do, it needs some power on server which i am not shure if free heroku can handle will do try it.
  2. Sometimes the site youre searching is down that is why it shows cannot connect to site
  3. I have telegram and a simple site auth in mind i'm currently doing internship and dont have much time will be doing these in a week
  4. It will require 2 requests that is why i was hesitant to do that but will add as it is demanded so much
  5. I'm a nOOb. this is on the end of list sorry to say

Will close this issue when all these are done. And this is now for discussion of more features

rsoorajs commented 4 years ago

Also i am mentioning one more bug

1.The app still sleeps after puttiing SITE as env var.so big torrent file downloads are keep failing

2.If heroku detected this repo as a torrent based one,they will probably delete all future deploys.To avoid this,run this code in docker on heroku

And thanks.you are doing a great job. zeit.co is another alternative of heroku for free app deploying.

patheticGeek commented 4 years ago

heroku restarts every 24h no matter what and the disk is not persistant that is why they fail will add an indiactor that shows when it is going to next restart so you can add early zeit is a great platform but it does not allow for this type of implementation as we need to have a custom server and zeit only allows next or nuxt which both only run on requests so in order to go there one request will be hanging there till that torrent download is done which will most likely timeout in 30s or have a performance impact

patheticGeek commented 4 years ago

1, 2, 3 and 5 these four are done please update your fork and see

thopDB commented 4 years ago

1.Telegram bot through torrent not uploaded into Google drive solve

  1. Download link not working because some error
  2. Please develop download link through Gdindex
  3. telegram and web users given download link only through Gdindex link

Please solve 4 errors

rsoorajs commented 4 years ago

Tested

1.Torrent leeching are stuck at halfway.tested several times on telegram bot (when i checked on logs,it shows app is crashed.when i restarted the app the bot started working again..and still crashes while leeching.)

2.How to add team drive ?any special env var for that like TEAM_DRIVE= TRUE ? so team drive is not working for me

3.Add an env var option to use telegram bot for only their users..peoples are abusing my bot

4.After adding DISALLOW_WEB = TRUE i can still access the web interface

hope you will fix these too

rsoorajs commented 4 years ago

1, 2, 3 and 5 these four are done please update your fork and see

check the above issues

patheticGeek commented 4 years ago
  1. that is problem in webtorrent library will need to report it there
  2. Open your teamdrive and in the url it shows teamdrive as a folder so copy the folder id and set the GDRIVE_PARENT_FOLDER to it Working on fixing 4 and 3
patheticGeek commented 4 years ago

@thopDB what is Gdindex link? i am assuming youre looking for something like goindex-drive please check that will add shareable links in a few days

thopDB commented 4 years ago

@patheticGeek Change Drive Index to Goindex, don't share links through heroku bcoz bot will ban heroku

goindex source code link : https://github.com/kulokenci/goindex-drive

patheticGeek commented 4 years ago

which bot will ban heroku?

thopDB commented 4 years ago

this bot https://github.com/lzzy12/python-aria-mirror-bot

previous use heroku through download links After ban shifted to all links using Goindex

thopDB commented 4 years ago

@patheticGeek Telegram bot not working once check it

patheticGeek commented 4 years ago

working for me what problem are you facing?

patheticGeek commented 4 years ago

i still am not undertanding what youre talking about the ban of gdrive links please explain. i have seen the go index drive and my implementation is a simpler version of it

rsoorajs commented 4 years ago

i still am not undertanding what youre talking about the ban of gdrive links please explain. i have seen the go index drive and my implementation is a simpler version of it

Heroku Officially never support torrenting apps.they will keep banning the apps..so we need to figure a way to bypass that. The famous apps like Cloudtorrent,peerflix codes are banned on heroku.so you need to put it on docker or something heroku ban..i am not sure..but using docker may help you to prevent ban.not sure

rsoorajs commented 4 years ago
  1. that is problem in webtorrent library will need to report it there
  2. Open your teamdrive and in the url it shows teamdrive as a folder so copy the folder id and set the GDRIVE_PARENT_FOLDER to it Working on fixing 4 and 3

1.try to use libtorrent or aria.they works fine

2.Tried and not working for teamdrives.you need to set an env var for the bot to recognise the storage which is using is teamdrive or not !

Using rclone config values as env var is much easier and 100% working.Also you can upload alot of hosts,if you try rclone

rsoorajs commented 4 years ago

i still am not undertanding what youre talking about the ban of gdrive links please explain. i have seen the go index drive and my implementation is a simpler version of it

https://github.com/maple3142/GDIndex/

thopDB commented 4 years ago

http://torrent-aio-bot.herokuapp.com/drive/file/Sonic%20the%20Hedgehog%20(2020)%20BluRay%20-%20720p%20-%20[Hindi%20(DD5.1%20-%20384Kbps)%20+%20Eng]%20-%20TeamTMV.mkv?id=1GNg-ahNGiaO3ciB_LadPUxH9UHZnfrKE

Don't share above type of URLs bcoz free heroku users u can use Gdindex then safe ur heroku account

rsoorajs commented 4 years ago

http://torrent-aio-bot.herokuapp.com/drive/file/Sonic%20the%20Hedgehog%20(2020)%20BluRay%20-%20720p%20-%20[Hindi%20(DD5.1%20-%20384Kbps)%20+%20Eng]%20-%20TeamTMV.mkv?id=1GNg-ahNGiaO3ciB_LadPUxH9UHZnfrKE

Don't share above type of URLs bcoz free heroku users u can use Gdindex then safe ur heroku account

okay,so you are trying to state that,sharing the download links of torrent files will cause banning.yeah thats also a reason.so gdrive is just fine.The most important thing is write the code for just personal use,so the code will not abuse,by lots of people and it will stay in heroku for a longtime.thats my suggetion in this case.

thopDB commented 4 years ago

image So many times repeat my bot every download torrent leech After show above image like

thopDB commented 4 years ago

in Telegram bot download link not working

thopDB commented 4 years ago

https://github.com/TGExplore/TG-Files-to-Link/blob/master/GenerateStringSession.py

above url code add and check becoz every download after heroku application not working thats y u can add above code after check plz

patheticGeek commented 4 years ago

http://torrent-aio-bot.herokuapp.com/drive/file/Sonic%20the%20Hedgehog%20(2020)%20BluRay%20-%20720p%20-%20[Hindi%20(DD5.1%20-%20384Kbps)%20+%20Eng]%20-%20TeamTMV.mkv?id=1GNg-ahNGiaO3ciB_LadPUxH9UHZnfrKE

Don't share above type of URLs bcoz free heroku users u can use Gdindex then safe ur heroku account

You are stating to use gdriveindex or go index, the approact ive taken here is simillar to those. This is just a link which connects with gdrive api and all data comes from there heroku server just acts like a middle man. I'm not undertanding what youre saying about the ban and why not to use these links.

patheticGeek commented 4 years ago

in Telegram bot download link not working

Please also share the magnet link of file youre trying to download!

patheticGeek commented 4 years ago

i still am not undertanding what youre talking about the ban of gdrive links please explain. i have seen the go index drive and my implementation is a simpler version of it

https://github.com/maple3142/GDIndex/

I know this and i made it smiliar to it already knew about this i didnt use it because it is on cloudflare workers not heroku if you want you'll have to implement it yourself. Seen this refrenced by people to me more than dead texts to my crush!!!!!

thopDB commented 4 years ago

give me our telegram bot url

patheticGeek commented 4 years ago

give me our telegram bot url

@TheGreatIndexBot

rsoorajs commented 4 years ago

https://github.com/TGExplore/TG-Files-to-Link/blob/master/GenerateStringSession.py

above url code add and check becoz every download after heroku application not working thats y u can add above code after check plz

its working fine for me.but download crashes sometimes.i already mentioned that

patheticGeek commented 4 years ago

https://github.com/TGExplore/TG-Files-to-Link/blob/master/GenerateStringSession.py above url code add and check becoz every download after heroku application not working thats y u can add above code after check plz

its working fine for me.but download crashes sometimes.i already mentioned that

OK listen, it is in python i'm making my bot in JavaScript! This bot is also doing the same exact thing

thopDB commented 4 years ago

It's possible to deploy this code in cpanel hosting

thopDB commented 4 years ago

If any possible way to please Tel me

patheticGeek commented 4 years ago

So the thing is heroku lets you deploy some real code and not hose cpanel BS which only lets you use php wordpress or static files. Read their docs for how to deal with their library And it is python code so no it cannot be deployed on a cpanel

thopDB commented 4 years ago

Torrent add it after leech your heroku bot application error

Through telegram bot torrent leech success but download link error and after 2 torrent download application total error

Solve it bro

rsoorajs commented 4 years ago

everything works fine.if i add 2 torrents simaltaniously,bot crashes sometimes.teamdrive works perfect.

1.please add env var for specific telegram users to use our bot using their telegram id

2.Add an option to upload the zip files to gdrive(very needed)

like

/downloadzip magnet:?..........

thopDB commented 4 years ago

bro telegram bot to direct Gdrive deployment through heroku if u possible

thopDB commented 4 years ago

download direct link can u show Gdrive link in telegram bot

patheticGeek commented 4 years ago

This looks like webtorrents have a probem will try and deubg it on monday working on something else rn Telegram auth will be solved by tonight

patheticGeek commented 4 years ago

Torrent add it after leech your heroku bot application error

Through telegram bot torrent leech success but download link error and after 2 torrent download application total error

Solve it bro

Can you share the magnet link which youre trying to add

patheticGeek commented 4 years ago

bro telegram bot to direct Gdrive deployment through heroku if u possible

The torrent needs to be leeched fully only then it can be uploaded to drive so direct is not possible i am working on adding the drive link in torrent as the state of two are completely seperate

rsoorajs commented 4 years ago

This looks like webtorrents have a probem will try and deubg it on monday working on something else rn Telegram auth will be solved by tonight

Thanks.what about upload zip to gdrive ?

ccharya commented 4 years ago

Thanks.what about upload zip to gdrive ?

hmmm , how about remote upload to g drive ... u can upload any direct download link to google drive

patheticGeek commented 4 years ago

how to find auth url for geting the code to creat key/value i also checked the log no seen of the url needed

read the latest docs go to http://\.herokuapp.com/drivehelp ive added this page to help it make the process easy

patheticGeek commented 4 years ago

This looks like webtorrents have a probem will try and deubg it on monday working on something else rn Telegram auth will be solved by tonight

Thanks.what about upload zip to gdrive ?

I'm thinking of tiying it all closely rather than using different modules which can be resued. There will be some big changes in a few days if i do so

pybashc commented 4 years ago

bro torrent search is not working btw thanks for the application

patheticGeek commented 4 years ago

bro torrent search is not working btw thanks for the application

See the section to egt search working, just set the SEARCH_SITE env variable to http://torrent-aio-bot.herokuapp.com/ remember the / in end

pybashc commented 4 years ago

Bro torrent search is not working in your website also so it is not working in ours also

Btw I am also from india

patheticGeek commented 4 years ago

Bro torrent search is not working in your website also so it is not working in ours also

that'll be because the site scrapped by bot is not working like 1337x.to or torrentgrab .. i can't do much about it have added a section to change site in docs

pybashc commented 4 years ago

Ok trying it

patheticGeek commented 4 years ago

Where is the docs excuse me I am a noob

when you open the repo on github the file shown by default readme.md