Commit Graph

589 Commits

Author SHA1 Message Date
Anas 8694f9bb12
stop duplicate clone, view link optional and some changes (#147) 2021-06-09 12:03:36 +07:00
Hafitz Setya e805e7728f
v4.8.4
- Added support for tar.xz
- Fix Mega auto canceling if deleted file (#145)
- Direct link generator: Addad Naniplay.com, Naniplay.nanime.biz, Sbembed.com, Streamsb.net support

Co-authored-by: Ncode2014 <Ncode2014@users.noreply.github.com>
Co-authored-by: FA Tulloh <77918734+yourtulloh@users.noreply.github.com>
2021-06-09 04:38:17 +07:00
Hafitz Setya ea8e2299ec
Tidying up & Add credits for Anas 2021-06-08 06:38:26 +07:00
Anas 5ec9688b12
clone limit option (#142) 2021-06-08 06:05:36 +07:00
Hafitz Setya 9c13a526b6
Some change for custom buttons 2021-06-06 11:40:58 +07:00
Hafitz Setya c4174bc6bc
Change some emoji in button 2021-06-06 08:20:04 +07:00
Anas 8ed93974fe
View button for viewing file index link in browser instead of direct download link (#135) 2021-06-06 05:36:49 +07:00
Hafitz Setya b45849f714
IMG 2021-06-05 17:50:16 +07:00
Hafitz Setya efb6c07fdd
v4.8.3
- Added uptime in /status
- Added cc in /count
- Fix error if not field IMAGE_URL in config.env
- Tidying up
2021-06-05 17:48:44 +07:00
Anas d23bcbd956
Fix count after upload while index link is none (#131) 2021-06-05 11:02:12 +07:00
Hafitz Setya b709b8e130
v4.8.2 (#129)
- direct link generator: Added Racaty, Hxfile, Anonfiles,
Fembed (femax20 & layarkacaxxi), Onedrive (only works for file not folder for now, thanks to UsergeTeam) support
- aria: Added more tracker

Co-authored-by: Ncode2014 <Ncode2014@users.noreply.github.com>
2021-06-04 14:51:32 +07:00
Anas b490a58cf2
Count After Upload (#128) 2021-06-04 08:04:56 +07:00
Hafitz Setya f8179c8c32
Fix typo 2021-06-03 03:56:39 +07:00
Hafitz Setya a392a037b7
change back 2021-06-01 12:08:04 +07:00
Hafitz Setya 8b970c2f84
revert 2021-06-01 07:40:23 +07:00
Hafitz Setya 8935a0e27d
Tidying up 2021-05-31 11:54:59 +07:00
Anas 3589065196
Fix (#113) 2021-05-31 11:54:05 +07:00
Anas 31bfcabc92
Added Count cmd and some changes (#111) 2021-05-31 10:07:03 +07:00
Hafitz Setya 9dbad49a23
v4.8.0-hotfix
- Revert to ytdl, coz yt-dlp have bug in /tarwatch command
2021-05-30 15:23:29 +07:00
Hafitz Setya 53403b2df4
v4.8.0
- Some modification in /start command
- Added multiple tracker
- Change to yt-dlp for more supported site (memory executed is fixed when  yt-dlp)
- Tidying up

Co-authored-by: Sreeraj V R <SVR666@users.noreply.github.com>
Co-authored-by: Ncode2014 <Ncode2014@users.noreply.github.com>
2021-05-30 08:34:49 +07:00
Hafitz Setya aa6aab2f4c
v4.7.8
- Added custom img in telegraph search
- Update user agent
- Tidying up
2021-05-25 11:26:50 +07:00
Hafitz Setya 813f2174be
v4.7.7 (#103)
- Remove unused import
- Added badge

Co-authored-by: Tanmoy karmakar <59302188+tk007-git@users.noreply.github.com>
2021-05-24 11:52:54 +07:00
BruteWoorse 9a3dac7206
Fix Typo (#99) 2021-05-19 14:58:09 +07:00
BruteWoorse 9e1a5b7ac4
import button_build (#97) 2021-05-19 13:47:00 +07:00
BruteWoorse 31b0dbfeb2
use button_build (#96) 2021-05-19 13:43:38 +07:00
Hafitz Setya 300494a608
v4.7.6 (#95)
- Remove repo command & move it to start command
- Now sudo can use cancel & cancelall command
2021-05-18 09:48:20 +07:00
Hafitz Setya 6df4486ca5
v4.7.5 (#94)
- Added sudo using database
NOTE: redeploy recommended to generating database, or you can go to your herokuapp > resources > add-ons > then serach Heroku Postgres > hit Submit Order Form, then copy your database url from DATABASE_URL > Heroku config vars
- mirror: Fix for uploading telegram file_name of None type
- gdriveTools: Fix infinite loop when hitting rate limits

Co-authored-by: Sreeraj V R <SVR666@users.noreply.github.com>
Co-authored-by: Gautam Kumar <gautamajay52@gmail.com>
Co-authored-by: KenHV <yo@kenharris.xyz>
2021-05-17 15:36:46 +07:00
Hafitz Setya 9d969f3ab6
v4.7.4
- Remove stickers search, cuz broken
- Added SUDO_USER

Co-authored-by: jovanzers <jovanzers@gmail.com>
2021-05-14 17:34:27 +07:00
Hafitz Setya 8773be7f8d
Remove eval cmd from help 2021-05-13 11:16:31 +07:00
Hafitz Setya b19caf7f48
Add some command in /help 2021-05-13 09:44:59 +07:00
Hafitz Setya 8b39987d69
v4.7.3
- Auto set bot command
- Added mediainfo command

Co-authored-by: brutewooorse <brutewooorse@users.noreply.github.com>
Co-authored-by: code-rgb <code-rgb@users.noreply.github.com>
2021-05-13 03:54:24 +07:00
Hafitz Setya 29b2e32470
v4.7.2
- Change docker and update megasdk
- Tidying up
2021-05-11 21:06:14 +07:00
Hafitz Setya cc120a01ad
Tidying up 2021-05-10 07:59:13 +07:00
FA Tulloh 080039d3f5
Some fixes (#83) 2021-05-09 15:48:25 +07:00
Hafitz Setya 9612d9994b
v4.7.1 (#82)
- Revert to megasdk
- Added Estimated Dyno Expired in usage command

Co-authored-by: Ncode2014 <Ncode2014@users.noreply.github.com>
2021-05-08 14:20:12 +07:00
Hafitz Setya 5894b540d8
Add button for /repo command
Co-authored-by: GudMeong <GudMeong@users.noreply.github.com>
2021-05-02 15:42:36 +07:00
Hafitz Setya 50b95b068c
Tidying up 2021-05-02 15:41:39 +07:00
Hafitz Setya 55b94831b0
v4.7.0 (#75)
- fix rarbg not start downloading after bot restarts
- catch an edge case in gdriveTools.drive_list

Co-authored-by: Anas <anasty17@users.noreply.github.com>
Co-authored-by: Aakash Singh <sainAk@users.noreply.github.com>
2021-05-01 17:41:48 +07:00
Hafitz Setya 5bc34adfe7
Revert "v4.7.0 (#72)" (#74)
This reverts commit fca6a44cec.
2021-05-01 17:41:05 +07:00
Hafitz Setya fca6a44cec
v4.7.0 (#72)
- fix rarbg not start downloading after bot restarts
- catch an edge case in gdriveTools.drive_list

Co-authored-by: Anas <anasty17@users.noreply.github.com>

Co-authored-by: Aakash Singh <sainAk@users.noreply.github.com>
2021-05-01 17:25:31 +07:00
Hafitz Setya ed46131794
Oof 2021-04-30 20:09:31 +07:00
Hafitz Setya d49ce11659
Added used & free disk in status
Hello S M Mahabub Hossain AKA priiiyo, can u stop kangging this repo?
2021-04-30 16:55:34 +07:00
Hafitz Setya f1ea3ed64c
Tidying up 2021-04-29 23:03:10 +07:00
Hafitz Setya b4f060840c
Space 2021-04-29 18:01:14 +07:00
Aidil Aryanto 289a42787f
Add var for custom image (#56)
- Add var for custom image
- custom img: improve and set default var

Signed-off-by: aidilaryanto <aidilaryanto18@gmail.com>
Co-authored-by: Hafitz Setya <71178188+breakdowns@users.noreply.github.com>
2021-04-29 09:32:46 +07:00
Hafitz Setya 21857aaaaa
Forget
Co-authored-by: Anas <anasty17@users.noreply.github.com>
2021-04-29 04:48:33 +07:00
Hafitz Setya 07aea286ad
Fixed /cancel msg when uploading
Co-authored-by: Anas <anasty17@users.noreply.github.com>
2021-04-28 19:55:34 +07:00
Hafitz Setya c141d2be22
Enable faulthandler
Co-authored-by: jaskaranSM <jaskaranSM@users.noreply.github.com>
2021-04-28 19:53:14 +07:00
Hafitz Setya 684ef8120c
Ingfo 2021-04-27 06:12:49 +07:00
Hafitz Setya 0e583811e4
Mega: Fixed mega in anonymous mode
Co-authored-by: Shivam Jha <lzzy12@users.noreply.github.com>
2021-04-26 21:29:52 +07:00
Hafitz Setya 5e1f05d5e3
Fix typo 2021-04-26 18:19:28 +07:00
Hafitz Setya 2ed3557bff
Oof 2021-04-26 16:19:12 +07:00
Hafitz Setya 6f2080b7f7
v4.6.9 (#66)
- Merged mega-rest from lzzy
- Fix /watch download msg progress
- Change auto stop to 20 minute
- Fix stop duplicate mirror (#65)
- Fix tar name
- Change tracker

Co-authored-by: Shivam Jha <lzzy12@users.noreply.github.com>
Co-authored-by: Dev Singh Rajput <magneto261290@users.noreply.github.com>
Co-authored-by: FA Tulloh <77918734+yourtulloh@users.noreply.github.com>
2021-04-26 16:14:40 +07:00
Hafitz Setya eb15e7c245
Update __main__.py 2021-04-23 14:27:25 +07:00
Hafitz Setya 4c3ff77bcc
v4.6.8 (#61)
- Added start time
Notes: Default time is using Asia/Jakarta.
You can change to your time in main.py
- Change some command in anime module
2021-04-23 08:41:56 +07:00
Hafitz Setya 70bf8cc471
v4.6.7 (#60)
- Tidying Up
- Fixed /cancel message

Co-authored-by: FA Tulloh
<yourtulloh@users.noreply.github.com>
Co-authored-by: Shivam Jha
<lzzy12@users.noreply.github.com>
Co-authored-by: Dev Singh Rajput
<magneto261290@users.noreply.github.com>
2021-04-23 02:54:51 +07:00
Hafitz Setya 9cca99d99f
Revert "Fixed /cancel message (#58)" (#59)
This reverts commit 66ecc6fd08.
2021-04-23 02:45:54 +07:00
Hafitz Setya 66ecc6fd08
Fixed /cancel message (#58)
Co-authored-by: FA Tulloh
<yourtulloh@users.noreply.github.com>
2021-04-23 02:43:12 +07:00
Hafitz Setya a077ecb66e
v4.6.6 (#52)
- direct_links: Added racaty.net support
- Update support group link
- Added img in /stats command
- Fix Index URL encode problem
- Added support for password protected index links by magneto
- stickers: Added /remove command to remove sticker an existing pack

Co-authored-by: The Fierce Warrior <TheFierceWarrior@users.noreply.github.com>
Co-authored-by: Dev Singh Rajput <magneto261290@users.noreply.github.com>
2021-04-19 03:34:31 +07:00
BruteWoorse 8f937c1b1f
Show Current size When Download size Exceeded. (#51)
* Show Current size When Download  size Exceeded.

* Fix typo

Co-authored-by: Hafitz Setya <71178188+breakdowns@users.noreply.github.com>
2021-04-15 19:21:12 +07:00
Hafitz Setya 4fa3f74a36
v4.6.5 (#50)
- Remove USE_TELEGRAPH, cuz its causes some issue
- Added support group link in /repo command
2021-04-14 15:13:34 +07:00
Hafitz Setya 464d6fa39d
v4.6.4 (#48)
- Change Heroku button
- Some change in MAX_TORRENT_SIZE

Co-authored-by: BruteWoorse <brutewooorse@users.noreply.github.com>
2021-04-12 19:33:29 +07:00
Hafitz Setya 5f9d1beaaa
Oof 2021-04-12 13:41:10 +07:00
Hafitz Setya 264b4dbc7c
v4.6.3 (#47)
- Added /authlist command, to see Authorized list
- Add ability to limit when mirroring torrent
- Fixed Zippyshare

Co-authored-by: Sreeraj V R <SVR666@users.noreply.github.com>
Co-authored-by: BruteWoorse <brutewooorse@users.noreply.github.com>
Co-authored-by: KenHV <yo@kenharris.xyz>
2021-04-12 10:47:06 +07:00
Hafitz Setya 2e0dd53363
Fixed zippyshare 2021-04-10 14:25:19 +07:00
Hafitz Setya 60e361b1fd
Oof 2021-04-09 05:28:21 +07:00
Hafitz Setya 2a29a9cdac
v4.6.2 (#46)
- Added guide deploy using heroku cli
- Fixed SpeedTest
- Make easy to cancel

Co-authored-by: Hikikomori San <H1kikomoR1@users.noreply.github.com>
Co-authored-by: ydner <ydner@users.noreply.github.com>
2021-04-09 05:25:03 +07:00
Hafitz Setya 174d96b4d4
v4.6.1 (#41)
- Tidying up
2021-04-05 18:22:25 +07:00
Hafitz Setya 9e8a706ecf
v4.6 (#40)
-  Fixed cannot change locale (en_US.UTF-8)
-  Update /repo command
-  Logger when restarting
-  Using Telegra.ph for /list search results optional.
Thanks to ksssomesh12
2021-03-29 10:14:36 +07:00
Hafitz Setya 2c5b282c73
Fix typo 2021-03-27 11:47:26 +07:00
Hafitz Setya c3ef34e14b
Fix typo 2021-03-27 11:46:33 +07:00
Hafitz Setya eefcef0495
v4.5 (#39)
- Added /repo command
- Added some emoji
- Remove Encryption
- Cleanup code
2021-03-27 11:26:54 +07:00
Hafitz Setya 5568e90d7b
Update youtube_dl_download_helper.py 2021-03-24 10:12:06 +07:00
Hafitz Setya 1a222a3cfc
v4.4.4 (#35)
- cc after clone finish.
Thanks to anasty17
- Change to yt-dlp
2021-03-24 07:24:16 +07:00
Hafitz Setya 8610fec2ba
Update __init__.py 2021-03-23 09:07:16 +07:00
Hafitz Setya a0a2e52023
Update __init__.py 2021-03-23 09:04:20 +07:00
Hafitz Setya e54c041627
Some fixes for vps user (#32) 2021-03-23 08:59:34 +07:00
Hafitz Setya e3adb19880
v4.4 (#31)
- Fix typo
- Automatic stopped after 300 second if dead torrent
- Stop clone gdrive link limit
2021-03-22 16:06:32 +07:00
Hafitz Setya faf2d51308
Forget 2021-03-19 19:22:56 +07:00
Hafitz Setya 227420d790
V4.3 (#30)
- Fixed Zippyshare.
Thanks to UsergeTeam, BianSepang, usmanmughalji 
- Update cloning log
2021-03-19 09:27:46 +07:00
Hafitz Setya 101505752c
Fix Telegram file tar 2021-03-18 09:00:51 +07:00
Hafitz Setya fed9c80ade
Added repo link in /start command 2021-03-17 11:25:51 +07:00
Hafitz Setya fe22b1cbb3
v4.2 (#27)
- Added Extract Password Protected Archive Files
- Many minor bug fixed
2021-03-17 11:11:11 +07:00
Hafitz Setya d760da40ab
Fixed typo 2021-03-17 07:17:38 +07:00
Hafitz Setya 8cc84a9579
Fixed mega 2021-03-16 15:01:26 +07:00
Hafitz Setya 110bfd4cdd
v4.1 (#26)
- Added Custom Filename support
2021-03-15 09:25:23 +07:00
Hafitz Setya 49a9dcd7b7
Fixed typo 2021-03-11 18:52:48 +07:00
Hafitz Setya 645a69b7ed
Tidying up 2021-03-11 16:59:08 +07:00
Hafitz Setya 44bfe96364
v4.0 (#23)
- Added /usage command to see heroku dynos
2021-03-11 16:57:22 +07:00
Hafitz Setya db7e8b51ab
Count search results in telegraph 2021-03-11 06:42:23 +07:00
Hafitz Setya 1d809560d5
v3.9 (#19)
- Added option to block mega folder support
2021-03-10 08:46:46 +07:00
BruteWoorse d023e2c179
Use bot session_string 2021-03-10 00:49:55 +08:00
Hafitz Setya 72441215ac
Oof 2021-03-09 20:41:12 +07:00
Hafitz Setya ce7dba3f17
Update __main__.py 2021-03-09 20:13:25 +07:00
Hafitz Setya adbc6b0491
Tidying 2021-03-09 18:23:21 +07:00
Hafitz Setya 7a9dc87e9e
Update bot_utils.py 2021-03-09 18:22:36 +07:00
Hafitz Setya 0fd996955c
v3.8 (#15)
- Added overall DL, UL speed in /status
- Added CPU, DISK, RAM usage in /status
- Show peers and seeders
2021-03-09 17:17:06 +07:00
Hafitz Setya f78358537b
Update /list command 2021-03-09 13:45:53 +07:00
Hafitz Setya 5d2237283a
Tidying 2021-03-06 12:34:59 +07:00
Hafitz Setya 2ba98ac0de
v3.7 (#14)
- Added Uptobox support
- Check file in drive before mirror and stop duplicate mirror
2021-03-06 09:35:15 +07:00
Hafitz Setya 4d59931629
v3.6 (#13)
- Added extra buttons
2021-03-05 11:47:04 +07:00
Hafitz Setya df192e4145
v3.5 (#12)
- Added quality option in /watch command
- Added url Shorteners support (Optional)
- Random name while generating Telegraph Token
2021-03-04 06:30:32 +07:00
Hafitz Setya 3520d59062
Update speedtest.py 2021-03-03 11:56:30 +07:00
4amparaboy db6030ca3b Update speedtest.py 2021-03-03 11:43:45 +07:00
4amparaboy 57fcb4f4bd Update speedtest.py 2021-03-03 11:43:45 +07:00
4amparaboy 2778223e21 Update speedtest.py 2021-03-03 11:43:45 +07:00
Hafitz Setya 0444bc07e9
Update gdriveTools.py 2021-03-03 10:19:32 +07:00
Hafitz Setya 35ad3e524e
v2.5 (#10)
- /list command now results will be uploaded to telegra.ph
- Auto generate Telegraph Token
- Added Inline Buttons
- Update /stats command
2021-03-03 09:12:39 +07:00
Hafitz Setya 11e9b2cad6
Fixed /list command 2021-03-01 11:18:11 +07:00
Hafitz Setya a6e3482878
Update list.py 2021-03-01 10:28:03 +07:00
Hafitz Setya 77904d77f0
v2.5 (#9)
* Added mega.nz support
* Added option to disable mega.nz links
* Some fixes and optimization
2021-03-01 07:44:54 +07:00
Hafitz Setya 2bf3e7fa88
v2.0 (#7)
* Added ability of extracting iso, wim and many other filetypes 

* Added Speedtest command
2021-02-27 16:12:22 +07:00
Hafitz Setya 8745252232
Fixed typo 2021-02-26 18:30:52 +07:00
Hafitz Setya 37b30cd10f
Fix None FileName in mirroring some TG File (#6) 2021-02-24 19:55:10 +07:00
Hafitz Setya 78a3f13f92
Skip unavailable videos when downloading from Playlist 2021-02-22 15:27:53 +07:00
Hafitz Setya 7c5e7c5108
Update gdriveTools.py 2021-02-21 18:33:38 +07:00
Hafitz Setya 195c04112a
Tidying up (#5)
* Update delete.py

* Update mirror.py

* Update README.md
2021-02-20 14:03:55 +07:00
Hafitz Setya 6a296bf0de
Update clone.py 2021-02-19 16:45:10 +07:00
Hafitz Setya 2990e85d79
Update __main__.py 2021-02-19 08:21:53 +07:00
Hafitz Setya f9b5af6375
Tidying up 2021-02-19 07:38:17 +07:00
Hafitz Setya 96f5c1fdee
Change /delete command to /del (#4)
* Update bot_commands.py

* Update README.md
2021-02-18 19:52:04 +07:00
Hafitz Setya e1c4fdd8fe
Update search.py 2021-02-15 09:22:52 +07:00
Hafitz Setya b8aac403b3
Added AUTHORIZED_CHATS in config & auto generate String Session (#3)
* Added AUTHORIZED_CHATS in config

* Update config_sample.env

* Update app.json

* Update __init__.py

* Update config_sample.env

* Delete generate_string_session.py

* Update app.json

* Delete authorized_chats.txt

* Oof

* Update README.md

* Forget

* Update README.md

* Update README.md
2021-02-15 08:03:25 +07:00
Hafitz Setya c7b58b09cd
Fix tag 2021-02-14 20:57:56 +07:00
Hafitz Setya 35e636cc23
Update gdriveTools.py 2021-02-14 20:43:34 +07:00
Hafitz Setya cffd94501a
Fix TG unzipmirror 2021-02-14 11:03:53 +07:00
Hafitz Setya a999fe00c2
Fix restart if user has not mirrored anything 2021-02-14 10:52:24 +07:00
Hafitz Setya fbd77ae313
Session String (#2)
* Update README.md

* Update README.md

* Update gdriveTools.py
2021-02-14 09:57:29 +07:00
Hafitz Setya 8f94e54696
Update gdriveTools.py 2021-02-14 04:17:31 +07:00
Hafitz Setya cf506b283a
Change to English 2021-02-13 19:29:02 +07:00
4amparaboy 884b653cc6
Update __main__.py 2021-02-13 19:10:36 +07:00
4amparaboy ec85e8e4c1
Update bot_commands.py 2021-02-13 19:10:12 +07:00
4amparaboy 91b796e20d
Update gdriveTools.py 2021-02-13 19:09:26 +07:00
4amparaboy c6df641282
Create delete.py 2021-02-13 19:07:59 +07:00
4amparaboy 6bb946b6b6
Update clone.py 2021-02-13 19:07:18 +07:00
Hafitz Setya 2b0681001d
Update stickers.py 2021-02-11 19:23:05 +07:00
Hafitz Setya 71e705ffe3
Update anime.py 2021-02-11 19:21:54 +07:00
Hafitz Setya 990d244e81
Update __main__.py 2021-02-11 19:20:46 +07:00
blank x 11bd13a756 add nyaa and sukebei torrent search function 2020-11-28 21:31:05 +05:30
jaskaranSM 9fd1269dd9 add shell and executor 2020-11-13 18:26:33 +05:30
DragSama 250a0155f7 add anime and stickers mod 2020-11-13 18:21:53 +05:30
Chizuru 22e38bb099 few changes 2020-11-13 18:12:58 +05:30
lzzy12 952a661b62 Merge remote-tracking branch 'origin/staging-4.0' into master
# Conflicts:
#	Dockerfile
#	bot/helper/ext_utils/bot_utils.py
#	bot/helper/mirror_utils/download_utils/aria2_download.py
#	bot/modules/mirror.py
#	requirements.txt
2020-09-13 22:38:45 +05:30
Dev Singh Rajput 009746aa01 added ability of extracting .7z files (#144) 2020-07-31 20:21:42 +05:30
Shubham dubey 10593d8a66 Fix /list if fileName string contains multiple quotes (#141) 2020-07-31 20:06:01 +05:30
jaskaranSM 0096b6328c Revert "Implement mega.nz support"
This reverts commit 45f75fb7a6.
2020-07-31 20:06:01 +05:30
lzzy12 1aed50a5f4 Fixed multiple /unzipmirror commands gets all the mirrors stuck
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-28 14:51:55 +05:30
lzzy12 b5a162f15d Use subprocess.run to call extract shell script
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-27 23:40:47 +05:30
lzzy12 e77290528e Fixed downloads from torrent files won't show seeders and peers
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

# Conflicts:
#	bot/helper/mirror_utils/download_utils/aria2_download.py
2020-06-27 20:28:30 +05:30
jaskaranSM b042030760 Implement Centralized Aria Websocket Listener
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-23 18:39:15 +05:30
jaskaranSM e4ecc60407 Optimize Clone implementation 2020-06-23 17:09:49 +05:30
jaskaranSM 53c34db027 Added cpu and ram usage in stats 2020-06-21 14:02:24 +05:30
jaskaranSM 1b79bbda6e Fix error extraction 2020-06-21 13:39:15 +05:30
lzzy12 45f75fb7a6 Fix crash if Mega API key is not provided
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-19 15:34:18 +05:30
jaskaranSM c6a430a44d Handle more exceptions 2020-06-18 12:59:52 +05:30
jaskaranSM 3720eacf13 Optimize Clone implementation 2020-06-18 12:57:31 +05:30
lzzy12 c4c7575000 Generate our own gid for mega mirrors
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-05 14:01:36 +05:30
lzzy12 c791b39785 Revert "Improved upload progress implementation"
This reverts commit 0f7b79f7a4.
2020-06-05 13:20:40 +05:30
lzzy12 3217b67df0 Fixup for meganz login
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-05 13:15:00 +05:30
lzzy12 8bd01276be Add ability to login to mega account for premium accounts
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-06-03 11:32:09 +05:30
lzzy12 df655a356c Import mega api key from config.env file
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-05-28 21:03:15 +05:30
jaskaranSM 578eeb4004 Implement Mega.nz mirror support.
- Co-authored by - lzzy12 (github.com/lzzy12)
2020-05-28 15:17:19 +05:30
Yash Garg 3f45ba6a73
Fix start message using f strings (#94)
Fixes #90
2020-05-28 08:23:02 +05:30
Nageen Chand b6b8a416e9
add ability to unzip files (#93)
handle unsupported request

use shell utils to extract archives

use shell utils to extract archives

update mirror calls for unzipmirror

fix extract location of files

install deps

handling if archive is not extracted correctly

typo fix

implement Extract Status

handle filenames with spaces

handle special character
2020-05-28 00:26:22 +05:30
Adnan Ahmad 9f5942deaa
Fixed Start message after changing HelpCommand (#90) 2020-05-23 16:57:02 +05:30
lzzy12 f3a3ed05f4 Fixed cancel by gid after f4290210b1
- This fixes #77

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-05-21 17:25:11 +05:30
lzzy12 0f7b79f7a4 Improved upload progress implementation
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-05-21 13:08:50 +05:30
jaskaranSM cdefe12348 Implement Centralized Aria Websocket Listener 2020-05-15 13:34:09 +05:30
lzzy12 f4290210b1 Implemented mirror ownership
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-05-14 19:02:33 +05:30
jaskaranSM 3c04dc4a6c handle exception in onUploadError 2020-05-12 14:34:07 +05:30
jaskaranSM 1670b619ae Fix deadlock 2020-05-12 14:27:24 +05:30
jaskaranSM a196ce5b93 Handle TG exceptions 2020-05-12 13:56:57 +05:30
jaskaranSM c4e81d5ab1 start Aria2 Websocket listener before adding download in queue. 2020-05-12 13:50:16 +05:30
lzzy12 d3938784ac Remove broken direct download link extracters
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-05-09 00:10:09 +05:30
lzzy12 1d8c8ce954 restart: Clean downloads before restarting
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-05-09 00:05:35 +05:30
jaskaranSM 315108e7d1 patch regex for more links 2020-05-05 10:51:55 +05:30
jaskaranSM 4d964b6e29 use regex to extract fileId from GDrive links 2020-05-04 12:25:40 +05:30
Youssif Shaaban Alsager b02990d9eb
restart: inform the user that restarting is complete (#67)
Signed-off-by: yshalsager <ysh-alsager@hotmail.com>
2020-04-25 21:13:25 +05:30
Arsalan 4410f4e8aa
fixed hardcoded /watch for custom command users (#66) 2020-04-22 11:41:51 +05:30
Youssif Shaaban Alsager 63a67d7a14
Add restart command (#53)
* Add restart command

This is handy when you need to restart the bot when something goes wrong.

Currently, the bot restarts but doesn't send a message after restarting
is done, feel free to improve this. It'll need something like storing
bot status locally then on bot start, if restart status exists send
a message.

Signed-off-by: yshalsager <ysh-alsager@hotmail.com>

* restart: switch to context based callbacks

* restart: restrict the command to owner only

Co-authored-by: Shivam Jha <jhashivam2020@gmail.com>
2020-04-21 15:33:05 +05:30
jaskaranSM 78b60d6715
import threading lib 2020-04-19 14:58:35 +05:30
jaskaranSM 8624e0174b Fix IO Block on Large Playlists 2020-04-18 14:32:01 +05:30
jaskaranSM 236b6eb30e use args from CallbackContext 2020-04-16 13:28:44 +05:30
jaskaranSM 8341fe08c8 watch: context based callbacks 2020-04-16 13:00:35 +05:30
jaskaranSM 120ca7538d clone: remove forward slash 2020-04-16 12:39:46 +05:30
jaskaranSM e5bb8e55ef Clone fix and added index link support 2020-04-16 12:38:12 +05:30
jaskaranSM d7bc8f3c9a switch to context based callbacks 2020-04-16 12:26:28 +05:30
lzzy12 c6b4c542b7 fixup after e0f4c4347c
- Also fixed copying of netrc file in the container

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-15 14:47:33 +05:30
lzzy12 e0f4c4347c Separate out youtube-dl command
- /watch [youtube-dl supported link]

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-14 23:20:52 +05:30
lzzy12 e5364f96e1 Revert "Handle rare bug when download is not deleted from download_dict on error"
This reverts commit 136924ffd4.

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-13 13:32:39 +05:30
lzzy12 76e3db1946 [Hotfix] Fix bug where the link have 302 request are treated as torrents
Download.is_torrent introduced in aria2p v0.9.0
https://github.com/pawamoy/aria2p/issues/53

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-08 19:29:59 +05:30
Arsalan ed60afa9d6
fix typo in INDEX_URL (#54) 2020-04-07 20:36:04 +05:30
lzzy12 b2f2ee4335 Fix aria downloads cancellation after b58eb87b11
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-06 13:14:40 +05:30
lzzy12 47dd3c2b6f gdriveTools: Handle unhandled exception in clone method
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-05 14:12:13 +05:30
lzzy12 0536472e28 Expose message object from Status objects
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-05 13:28:35 +05:30
lzzy12 b58eb87b11 Improvements in cancelling mirrors
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-04-05 12:34:08 +05:30
jaskaranSM 708e6df87a youtube-dl: use best format 2020-04-01 12:07:29 +05:30
lzzy12 50ab740219 Correct filename if ffmpeg conversion is invoked by yt-dl
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-31 17:56:57 +05:30
lzzy12 a54fc42e1e Handle some exceptions
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-31 15:42:13 +05:30
lzzy12 e2c5c8beaf Log youtube-dl warnings and errors in bot log
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-31 11:15:09 +05:30
lzzy12 85d4005c16 Use netrc by default for youtube-dl
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-31 10:50:53 +05:30
lzzy12 9fa41f68c1 Some minor Fix-ups
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-30 18:16:54 +05:30
lzzy12 136924ffd4 Handle rare bug when download is not deleted from download_dict on error
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-30 17:46:56 +05:30
jaskaranSM 52e8fbec11 Fixed direct link torrent mirroring
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-30 17:05:55 +05:30
lzzy12 3754e8b3ce Fix tg torrent file mirror broken
since 7d74cf29d8

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-30 17:02:31 +05:30
lzzy12 0ec499ff4a Handle weird path naming of youtube_dl
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-30 16:36:12 +05:30
lzzy12 141b13b52d Make ydl object local to the methods
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-30 14:55:29 +05:30
lzzy12 3bf9e0ea31 Use default quality provided by youtube-dl for now
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-28 20:14:43 +05:30
jaskaranSM 6262b26fe5 youtube-dl: fixed downloading from sites that provide encrypted content (m3u8) 2020-03-28 18:44:02 +05:30
lzzy12 7c304d449a Fix uploading for YT-DL
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-28 14:38:08 +05:30
lzzy12 9057d3fc4e Fixed yt-dl support
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-28 13:47:19 +05:30
jaskaranSM 3a06458609 Added Youtube-dl support
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-27 20:04:13 +05:30
lzzy12 2254444378 Handle KeyError exception in Telegram download error
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-27 16:00:37 +05:30
lzzy12 0de6915222 Remove redundant exception classes and fix existing ones
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-27 14:35:51 +05:30
Shivam Jha 6d07c3c8c4
Stop trying to generate sourceforge direct links 2020-03-26 16:02:36 +05:30
jaskaranSM be9c64a9aa Use Service Accounts for Cloning if availble.
- increase default timeout for network socket interface

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-25 18:00:33 +05:30
jaskaranSM 08a71e4bd4 TeamDrive List fix
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 18:57:10 +05:30
lzzy12 6ca2f479d5 Fix up errors after porting service accounts from develop
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 16:30:03 +05:30
lzzy12 25856bfac0 gdrive: Stop spamming logs at INFO log level
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 15:49:04 +05:30
jaskaranSM 8d1bf5aa92 recursively try again instead of handling switch with backoff
- Handling service account switching with exponential backoff implementation limits the number of service accounts to be used. recursively retrying again after switch doesnt effect backoff.

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 15:41:59 +05:30
jaskaranSM 6cd59d5a15 Cleanup drive_list and minor fixes
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 15:39:57 +05:30
jaskaranSM 681b8bd47d Added missing property 2020-03-24 15:07:45 +05:30
jaskaranSM 2bbfca0496 Refactor service account implementation
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 15:07:23 +05:30
lzzy12 7ad7d9388a Add support for service account
Adding support service accounts

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

Added scripts and docs for generating service accounts

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

gen_sa_accounts: Save credentials with indexed file name

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

gdriveTools: Avoid using oauth2 library for service accounts

oauth2 library is deprecated

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-24 15:04:24 +05:30
jaskaranSM 997e572b69 Enable TeamDrive support for clone 2020-03-24 14:17:50 +05:30
lzzy12 94b6be4c03 Add licensing and authorship information for direct_link_generator.py
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-23 15:41:53 +05:30
lzzy12 f50981b3a2 Implement cancel downloads of tg mirrors
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-23 15:21:54 +05:30
lzzy12 9369c7dc98 Allow mirroring tg file again once file download is complete
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-23 14:49:57 +05:30
lzzy12 7d74cf29d8 Fixed support for mirror of video and audio telegram files
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-22 16:30:57 +05:30
lzzy12 d6a513e77b Fix typo in direct_link_generator.py
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-22 15:48:14 +05:30
lzzy12 b4b0dcd3f8 Improve logic for parsing id from gdrive url
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-22 15:05:12 +05:30
lzzy12 49fe46bad3 Add gid method in Status class for download classes
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-22 15:05:12 +05:30
jaskaranSM a44d0da9f6 Implement cancellation of downloads by gid 2020-03-22 15:05:11 +05:30
jaskaranSM 6b60ca4491 Squash of clone command
Implement clone feature
- clones a public/driveAccountAccessible Drive Link to bot G-Drive

use BotCommands for clone command trigger
2020-03-22 15:05:11 +05:30
lzzy12 94ccdcbeef Add support for mirror of telegram files
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

Add a script to generate string session for user

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

Some fix ups

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

Fix telegram download

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-22 15:04:31 +05:30
lzzy12 898977df97 Use proper url-encoding methods to replace special characters from url
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-20 17:03:33 +05:30
jaskaranSM afc2808acc Rewrite tar function
- shutil changes pwd while archiving. as some functions of bot require relative paths, it is neccesary to keep pwd as bot root dir.

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

# Conflicts:
#	bot/helper/ext_utils/fs_utils.py
2020-03-19 15:43:04 +05:30
lzzy12 36df3aa2b4 Improve logic for determining true/false from config.env
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

# Conflicts:
#	bot/modules/mirror.py
2020-03-19 15:40:43 +05:30
lzzy12 ae9d972add Tag the author of replied message of mirror command
This closes #24

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>

# Conflicts:
#	bot/modules/mirror.py
2020-03-19 15:36:11 +05:30
lzzy12 7ba7bc92ac Add support for Direct Download generation
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
2020-03-19 14:22:33 +05:30
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
Shivam Jha 38348fc2aa
Revert "Set logging level to debug"
This reverts 687321ac72
2020-01-17 01:14:54 -08:00
Shivam Jha 687321ac72
Set logging level to debug 2020-01-16 10:46:50 -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
jaskaranSM 5598159626
Refactor parse logic 2020-01-04 07:46:23 +05:30