Commit Graph

110 Commits

Author SHA1 Message Date
lzzy12 2fddd06178 Fixed upload of empty files for Team Drive
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-02-05 02:49:54 -08:00
jaskaranSM 8cbe2c29e4 Added peers and seeders count for bittorent downloads
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-02-05 02:45:38 -08:00
Shivam Jha 96e623ef57
UploadStatus: Handle exception ZeroDivisionError 2020-02-05 01:52:43 -08:00
jaskaranSM 05468196e3
Fix Status Message 2020-01-20 09:19:49 +05:30
Shivam Jha 5c1a9c71b7
gdriveTools: Hardcode interval for updating progress 2020-01-17 01:34:52 -08:00
Aki 351d4030a8 fs_utils.py: Use python-magic for guessing mimetype (#31)
1. mimetypes is not a reliable way to know the mime type of a file.

2. python-magic uses libmagic which identifies file types by checking their headers according to a predefined list of file types.

	https://github.com/ahupp/python-magic
2020-01-16 09:06:55 -08:00
Shivam Jha 00a8e57467
Fixed error in gdrivetools 2020-01-10 17:36:51 +05:30
lzzy12 326129fdeb Make Oauth Scope a list as it should be
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-01-04 07:42:55 +05:30
lzzy12 e5f997d1f3 Revert "Fixed potential race conditions in GoogleDriveHelper class"
This reverts commit 20dae25dc9.

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-01-03 10:41:54 +05:30
jaskaranSM 7b2d5d50ab Implement Exponential Backoff
- for handling Google Drive API errors such as 5xx,4xx
2020-01-03 10:15:40 +05:30
jaskaranSM a64b1b5346 Fixed stucked downloads when stopped via aria bt-stop-timeout 2019-12-29 19:50:01 +05:30
jaskaranSM 30dd2d97f5 Minor Refactor 2019-12-29 19:14:52 +05:30
jaskaranSM 38fa1ec2a6 Fixed Handling of Cancellation of uploads/archivals 2019-12-29 19:13:10 +05:30
lzzy12 20dae25dc9 Fixed potential race conditions in GoogleDriveHelper class
* Also simplified code a bit
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-26 16:39:59 +05:30
lzzy12 820d72f317 Fixed files not being shown which were not uploaded by bot
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-26 14:47:05 +05:30
lzzy12 4fc07cd7a9 Fix typo in speed indicator
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-25 19:17:35 +05:30
lzzy12 4e1f7a8a77 Small optimisations all around
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-25 16:40:43 +05:30
lzzy12 8e886a3030 Add Index URL in /list cmd
Also simplified code a bit

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-25 15:53:43 +05:30
lzzy12 53b6829235 Fixed Team Drive list functionality
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-25 15:15:36 +05:30
jaskaranSM 8a516024cb Fixed Folder upload to Team Drives 2019-12-24 21:11:33 +05:30
lzzy12 b31a39f11a Enable TeamDrive support
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-24 20:12:39 +05:30
lzzy12 0ed1ca3531 Enable TeamDrive support
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-24 19:49:48 +05:30
lzzy12 6dfb3e9863 Simplify get_readable_msg code
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-24 17:35:09 +05:30
lzzy12 82ae49a33a Re implement upload progress after rebase
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-24 17:24:35 +05:30
jaskaranSM 19b6f91d5d Dont edit the message if content is same 2019-12-23 18:51:35 +05:30
lzzy12 01ed02e57c Fix mimetype error
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-23 16:29:20 +05:30
lzzy12 e2e1453013 Fixup errors after rebase
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-23 16:17:57 +05:30
jaskaranSM 0d30f19a4e Project Rebase
- Changelog:
 Improved Performance
 Fixed Stucked Messages
 Seperated Download Progress Status From Listener
 Disabled Upload Progress (Temporarily)
2019-12-23 13:26:32 +05:30
lzzy12 4f9fa3f63f Fix typo
Also Adds support for heroku env variables

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-12-09 17:05:57 +05:30
lzzy12 db0dcb0d8b [DO NOT DEPLOY] Incomplete save
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-11-12 17:32:58 +05:30
jaskaranSM 584bd138df Refactored Download start logic 2019-11-12 15:01:08 +05:30
Shivam Jha df82d5944e
Fix progress update in torrent download 2019-11-10 01:24:13 +05:30
lzzy12 da622c04be Don't depend on bot to run for generate_gdrive_token.py 2019-11-07 14:48:35 +05:30
jaskaranSM 3a3eca2411 Refactored disk to stats and added bot uptime
- Also helps tracking auto reboots on Heroku.
2019-11-01 21:18:46 +05:30
jaskaranSM 8be32c6e5c Fixed Broken Mimetype Detection 2019-11-01 20:26:36 +05:30
Shivam Jha 7b5375fd21
Fix up after f7960a7dfe 2019-11-01 19:00:35 +05:30
lzzy12 826ab1d6f5 Update README.md 2019-11-01 17:46:10 +05:30
lzzy12 bf956b3fa6 Merge branch 'master' of https://github.com/lzzy12/python-aria-mirror-bot 2019-11-01 16:54:04 +05:30
lzzy12 f7960a7dfe Fix empty file progress
Fixes #8

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2019-11-01 16:33:54 +05:30
jaskaranSM b9084fe506
list: Dont try to get size for folders 2019-10-31 22:23:40 +05:30
Shivam Jha c754d228e4
gdriveTools: Fix error in search 2019-10-31 00:04:43 +05:30
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 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
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