Commit Graph

111 Commits

Author SHA1 Message Date
Shivam Jha 830ee1ad3e
gdriveTools: Fix search
Recent force push seems to cause loss of commits. 
* Lesson learnt: NEVER FORCE PUSH IN MASTER BRANCH
2019-10-31 00:02:55 +05:30
jaskaranSM a0d8947d6b
list: fix bug 2019-10-30 21:04:32 +05:30
Shivam Jha 8e65b6280d
Only Allow owner to cancell all downloads 2019-10-30 17:28:59 +05:30
Shivam Jha 1cfa77757f
README.md: Update some stuffs 2019-10-30 16:38:51 +05:30
Shivam Jha 1d98b4b552
Update README.md 2019-10-30 16:34:01 +05:30
jaskaranSM d37b853408
Fixed Formatting. 2019-10-29 19:45:12 +05:30
jaskaranSM 563af194c5 Added Guide for Deploying on Heroku 2019-10-29 19:42:39 +05:30
jaskaranSM 03952750e2 Fix tagging users without username (#7) 2019-10-28 11:59:40 +05:30
Arsalan c403eab909 fixed the wrong comment (#6) 2019-10-28 10:52:22 +05:30
lzzy12 fd1c49d93f Fix indentation error
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-27 19:02:36 +05:30
lzzy12 6ec7a716d3 Merge branch 'docker' 2019-10-27 18:58:58 +05:30
lzzy12 88f4d5266f Add a python script to generate token.pickle file
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-27 18:55:32 +05:30
lzzy12 d706365ce6 Add heroku.yml file for heroku support
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-27 17:43:55 +05:30
lzzy12 a017f2260b Add Docker support
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-27 17:34:44 +05:30
jaskaranSM deb4b43fdd Validate Url and Magnet with Regex 2019-10-27 17:29:02 +05:30
jaskaranSM 3bac006fb3 Output file size in list search results
- Also Listing Recent Uploads Fixed. ( * )
2019-10-22 19:47:50 +05:30
jaskaranSM fdb49ac62a Fixed Cancelled Downloads stuck in Download Queue.
- Also some minor Modifications.
2019-10-22 18:20:47 +05:30
jaskaranSM 6ed78411fc
message_utils: Handle TimeOuts. 2019-10-20 18:53:18 +05:30
jaskaranSM b7e65d9c9c Changed sleep() call for Fixing Delay.
- Also Tweaked Torrent Metadata Status Logic a bit.
2019-10-19 16:44:26 +05:30
Shivam Jha fa664e6663
Check if log.txt exists before trying to open
This fixes #3
2019-10-17 21:45:03 +05:30
lzzy12 35f99c849f Handle an crash when user deletes the bot message manually
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-15 21:41:04 +05:30
lzzy12 9f26ed107c Allow owner to unauthorize a user or a chat
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-14 21:53:31 +05:30
lzzy12 d38bc90e82 Don't do anything on KillThreadException until we figure a better way
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-14 20:51:34 +05:30
lzzy12 6ce2507c36 Implement /log command for easier debugging
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-14 20:50:35 +05:30
lzzy12 a0cdda9e6e Improve gdrive progress tracking
* Still bugged

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-14 19:49:33 +05:30
lzzy12 7228461ab9 Cast time formats to int
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-13 21:14:47 +05:30
lzzy12 c9ede8bf16 Fix torrent download from telegram
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 23:40:04 +05:30
Shubham dubey cc90560657
This triggers my OCD 2019-10-12 17:39:04 +05:30
lzzy12 17a08973e1 Handle some more crashes related download cleanup
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 22:54:30 +05:30
lzzy12 7b485d13b0 Fix crashes related to cancel mirror
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 22:45:30 +05:30
lzzy12 c1e4bf246c Simply sleep the upload progress thread instead of using event locks
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 22:14:22 +05:30
lzzy12 4fa2e71e98 Show upload ETA in appropriate time units
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 22:12:07 +05:30
lzzy12 70eaada75f Stop blocking the thread while uploading the file causing slow speeds
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 21:22:21 +05:30
lzzy12 bb74416eca Stop trying to add invalid urls
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 21:02:12 +05:30
lzzy12 16886f5ac8 Make changing of bot commands easier
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 20:56:49 +05:30
lzzy12 5d6c0c8ff7 Implementing auto delete message
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 20:22:21 +05:30
lzzy12 a432ad8a5d Fix some messages sent by bot
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-12 19:50:50 +05:30
lzzy12 b5c3989451 exit_cleanup: Use aria2.remove_all method instead of loop
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 23:28:46 +05:30
lzzy12 fda8785c64 get_readable_message: Acquire lock before accessing the download_dict
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 23:25:13 +05:30
lzzy12 918b8653c9 Specify version of aria2p module
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 23:18:06 +05:30
lzzy12 6fe360ebaa Delete the element from download_dict if the download failed
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 19:56:54 +05:30
lzzy12 a50d0427fd Add an option to limit max concurrent downloads
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 19:36:15 +05:30
lzzy12 31510f0c01 Merge branch 'staging' of github.com:lzzy12/aria-mirror-bot into staging 2019-10-11 19:20:39 +05:30
lzzy12 2e378a9f0b Add initial project documentation
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 19:19:32 +05:30
lzzy12 fad3913e26 Implement cancelall
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 00:30:58 +05:30
lzzy12 9d83cd31c7 Random fixes all around the source
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-11 00:30:58 +05:30
Shubham dubey 42334d36b8 Limit seeding speed to minimal (#1)
* Limit seeding speed to minimal

By default aria2 seeds the torrent after downloading it which can cause very high bandwidth consumption and since there is no option to disable seeding (Curse you aria2) this will limit the aria2 upload speed to 1kBps.

* Update aria.sh
2019-10-10 23:03:12 +05:30
lzzy12 c683c7732f Fix authorization on bot restart
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-10 21:44:52 +05:30
lzzy12 ce16f77b6d Clean download directory on startup
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-07 23:17:09 +05:30
lzzy12 65303e3143 Change status while archiving download
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-07 23:05:05 +05:30