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
lzzy12
1761d16f70
Fix disk_usage size unit conversion logic
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-07 22:13:38 +05:30
lzzy12
80388249c5
Implement tar-mirror invoked by /tarmirror
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-07 22:13:38 +05:30
lzzy12
d36ba18a9f
Categorise modules according to their jobs
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-07 22:13:38 +05:30
lzzy12
e49445c603
Use loop count instead of progress_bytes for upload progress
...
* We still have to find the best way to limit the update
: Help needed
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-07 22:13:38 +05:30
lzzy12
3a8f284186
Only allow authorized users to use the bot
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-06 23:18:16 +05:30
lzzy12
3bfe24786e
Use threading.Lock to prevent concurrent access to shared resources
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-06 20:56:36 +05:30
lzzy12
b58cb47584
Trying to fix bug
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-05 22:48:37 +05:30
lzzy12
99efa2dacb
Fix error
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-05 21:25:13 +05:30
lzzy12
8d95cfa3b7
Fix upload ETA
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-05 21:18:58 +05:30
lzzy12
1e3b5578d5
Implement speed and ETA for upload
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-10-05 19:54:11 +05:30
Shivam Jha
2cf2cd4cd6
License source under GPL v3
2019-09-29 17:24:51 +05:30
lzzy12
706047f102
cancel_mirror: Handle some more user made errors
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 22:02:02 +05:30
lzzy12
7eda6b5f79
Add support for mirroring torrent files sent on telegram
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 21:22:50 +05:30
lzzy12
2447f7fc5c
Add /disk command
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 20:29:21 +05:30
lzzy12
b69e009661
Add help and ping commands
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 19:37:02 +05:30
lzzy12
f83ab444d2
Fix some random stuffs
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 19:01:15 +05:30
lzzy12
6cc7f63410
Fix more crashes when mirror url is invalid
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 18:29:04 +05:30
jaskaranSM
1fd10648ff
Add Progress Bar for Downloads
2019-09-29 18:29:04 +05:30
lzzy12
c638d7703e
Fix onDownloadError callback when url is invalid
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-29 05:43:34 +05:30
lzzy12
c360bebb7b
Start using python f-strings
...
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-09-28 23:29:01 +05:30