Giter Site home page Giter Site logo

silentdemonsd / wzml-x Goto Github PK

View Code? Open in Web Editor NEW
729.0 13.0 1.6K 1.66 MB

A Super Enhanced Telegram bot which can download torrents, mega, google drive links, telegram file, direct links and all yt-dlp sites, upload to google drive, telegram cloud, rclone clouds or ddl servers. Made with Pyrogram in Python by WZML-X Devs.

Home Page: http://wzmlx.mysterysd.in

License: GNU General Public License v3.0

Python 99.87% Shell 0.11% Dockerfile 0.02%
aria2c bot clone download gofile google-drive leech leech-bot mega mirror

wzml-x's Issues

Scalingo support??

Hi, is any chance to support scalingo? Or make a bypass for scalingo? Its like heroku.

Bot not working

I used Deploy With Github Workflow,, deploy green tick shown, but bot not working or running

Screenshot (58)

Error

Hello dear
on vps :

root@s11612706:/WZML-dev# sudo docker-compose up
Recreating wzml-dev_app_1 ... done
Attaching to wzml-dev_app_1
app_1 | warning: no common commits
app_1 | 2022-11-06 10:18:37,473 - root - INFO - Successfully updated with latest commit from UPSTREAM_REPO
app_1 | [2022-11-06 10:18:38 +0000] [33] [INFO] Starting gunicorn 20.1.0
app_1 | [2022-11-06 10:18:38 +0000] [33] [INFO] Listening at: http://0.0.0.0:5555 (33)
app_1 | [2022-11-06 10:18:38 +0000] [33] [INFO] Using worker: sync
app_1 | [2022-11-06 10:18:38 +0000] [61] [INFO] Booting worker with pid: 61
app_1 | 2022-11-06 10:18:38,878 - root - ERROR - One or more env variables missing! Exiting now
root@s11612706:
/WZML-dev#


Upload status

Hi dear
The /mirror command pauses at 90% for TG files which doesn't always work
*not all file

2022-11-07 10:51:03,096 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - INFO - Leech Completed: Friends S05E01 The One After Ross Says Rachel (1080p x265 10bit Joy).mkv
2022-11-07 10:51:04,698 - bot - ERROR - Can't parse entities: unmatched end tag at byte offset 427, expected "", found ""

What is your solution?

NameError: name 'help_user' is not defined

Bot crash on using /help

2022-11-25 04:16:41,400 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/telegram/ext/utils/promise.py", line 96, in run
self._result = self.pooled_function(*self.args, **self.kwargs)
File "/usr/src/app/bot/main.py", line 334, in bot_help
button.buildbutton("User", f"https://graph.org/{help_user}")
NameError: name 'help_user' is not defined

Error on starting

2023-01-02 22:03:10,319 - bot - INFO - Generating SESSION_STRING
2023-01-02 22:03:11,835 - pyrogram.connection.connection - INFO - Connecting...
2023-01-02 22:03:11,993 - pyrogram.connection.connection - INFO - Connected! Production DC5 - IPv4
2023-01-02 22:03:11,996 - pyrogram.session.session - INFO - NetworkTask started
2023-01-02 22:03:12,734 - pyrogram.session.session - INFO - Session initialized: Layer 151
2023-01-02 22:03:12,735 - pyrogram.session.session - INFO - Device: CPython 3.8.10 - Pyrogram 2.0.93
2023-01-02 22:03:12,735 - pyrogram.session.session - INFO - System: Linux 5.15.0-25-generic (en)
2023-01-02 22:03:12,735 - pyrogram.session.session - INFO - Session started
2023-01-02 22:03:12,852 - pyrogram.session.session - INFO - PingTask started
2023-01-02 22:03:13,466 - bot - INFO - Telegram Premium Detected! Leech Limit upgraded to 4GB
2023-01-02 22:03:13,468 - bot - INFO - TG_SPLIT_SIZE: 4194304000
[2023-01-02 22:03:13 +0000] [39] [INFO] Starting gunicorn 20.1.0
[2023-01-02 22:03:13 +0000] [39] [INFO] Listening at: http://0.0.0.0:81 (39)
[2023-01-02 22:03:13 +0000] [39] [INFO] Using worker: sync
[2023-01-02 22:03:13 +0000] [61] [INFO] Booting worker with pid: 61
2023-01-02 22:03:14,745 - root - INFO - Initializing Aria2c
2023-01-02 22:03:16,511 - bot - INFO - Creating Telegraph Account
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/src/app/bot/main.py", line 18, in
from .helper.ext_utils.bot_utils import get_readable_file_size, get_readable_time
File "/usr/src/app/bot/helper/ext_utils/bot_utils.py", line 12, in
from bot.helper.telegram_helper.bot_commands import BotCommands
File "/usr/src/app/bot/helper/telegram_helper/bot_commands.py", line 1, in
from bot import CMD_PERFIX
ImportError: cannot import name 'CMD_PERFIX' from 'bot' (/usr/src/app/bot/init.py)

Leech index error

Describe the bug
After leech is completed bot failed to send leech index message.

Log
bot - INFO - Leech Name: 05 Assassin’s Creed III Remastered [Day 1 Patch + All DLCs + AC Liberation + MULTi13] 2012 - [DODI Repack].zip
bot.helper.mirror_utils.upload_utils.pyrogramEngine - INFO - Leech Completed: 05 Assassin’s Creed III Remastered [Day 1 Patch + All DLCs + AC Liberation + MULTi13] 2012 - [DODI Repack].zip
bot - ERROR - Message caption is too long
bot - INFO - Cleaning Download: /usr/src/app/downloads/2633

index url

Hi dear

possible to remove default short link ( tinyurl) ?
after /mirror just the direct link will shows

Mirror, ytdl error | Encountered 403 Forbidden with reason "insufficientFilePermissions"

Log message,
googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "insufficientFilePermissions"
2022-11-30 16:58:47,977 - googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "insufficientFilePermissions"
2022-11-30 16:58:52,475 - googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "insufficientFilePermissions"
2022-11-30 16:58:59,484 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Total Attempts: 3
2022-11-30 16:58:59,484 - bot - INFO - Cleaning Download: /usr/src/app/downloads/2326

Telegram error message,
[Errno 2] No such file or directory: "/usr/src/app/downloads/2319/Jenna_Ortega_Answers_the_Web's_Most_Searched_Questions_|_WIRED_1080p24fps.webm"

How to fix this?

This error came in every mirror, ytdl task

Failed To Send Video in PM

app.copy_message(chat_id=self.__user_id, from_chat_id=self.__sent_msg.chat.id, message_id=self.__sent_msg.id)

seems that code cant copy file above 2gb even have premium session

Leech unzip not working

Logs

2022-11-25 05:16:12,950 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - Peer id invalid: -100836651153 Path: /usr/src/app/downloads/547/Mod 2.zip
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_1.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_10.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_11.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_12.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_13.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_14.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_15.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_16.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_17.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_18.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_19.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,062 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_2.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_20.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_21.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_22.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_23.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_24.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_25.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_26.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_27.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_28.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_3.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_4.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_5.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_6.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_7.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_8.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - /usr/src/app/downloads/547/Mod 2/Mod 2/2_9.mp4 size is zero, telegram don't upload zero size files
2022-11-25 05:16:14,063 - bot - INFO - Cleaning Download: /usr/src/app/downloads/547
2022-11-25 05:16:20,553 - bot.helper.mirror_utils.upload_utils.pyrogramEngine - ERROR - Peer id invalid: -100836651153 Path: /usr/src/app/downloads/554/Mod 3.rar.zip
2022-11-25 05:16:21,626 - bot - INFO - Cleaning Download: /usr/src/app/downloads/554

Indentation Error

File "/usr/src/app/bot/modules/bot_settings.py", line 245
mirrorbot-app-1 | TORRENT_TIMEOUT = ''
mirrorbot-app-1 | ^
mirrorbot-app-1 | IndentationError: unindent does not match any outer indentation level

BOT does not upload files to Drive

I have been using November update of BOT with heroku for a couple of days as december update doesnt not work for me for some reason I cant understand. But for last 2-3 days Nov update bot isnt working properly and throws an error while uploading any file to drive.

EOF occurred in violation of protocol (_ssl.c:2396)

BOT crashes on heroku after Dec update

I have been usig your bot for 3-4 months now and it worked perfectly but after december update (the previous and latest) the bot deploys (using GitHub Actions) fine, but it just crashes.

here is the logs from heroku:

2022-12-07T13:13:57.433992+00:00 app[web.1]: [2022-12-07 13:13:57 +0000] [35] [INFO] Starting gunicorn 20.1.0
2022-12-07T13:13:57.434280+00:00 app[web.1]: [2022-12-07 13:13:57 +0000] [35] [INFO] Listening at: http://0.0.0.0:25991 (35)
2022-12-07T13:13:57.434320+00:00 app[web.1]: [2022-12-07 13:13:57 +0000] [35] [INFO] Using worker: sync
2022-12-07T13:13:57.437534+00:00 app[web.1]: [2022-12-07 13:13:57 +0000] [57] [INFO] Booting worker with pid: 57
2022-12-07T13:13:57.835801+00:00 heroku[web.1]: State changed from starting to up
2022-12-07T13:13:58.697318+00:00 app[web.1]: 2022-12-07 13:13:58,697 - root - ERROR - One or more env variables missing! Exiting now
2022-12-07T13:13:58.778261+00:00 app[web.1]: 2022-12-07 13:13:58,778 - asyncio - ERROR - Unclosed client session
2022-12-07T13:13:58.778262+00:00 app[web.1]: client_session: <aiohttp.client.ClientSession object at 0x7fe6eb0a27a0>
2022-12-07T13:13:58.976006+00:00 heroku[web.1]: Process exited with status 1
2022-12-07T13:13:59.019844+00:00 heroku[web.1]: State changed from up to crashed

ERROR - One or more env variables missing! Exiting now
Regarding this error, idk whats wrong as I have been using your bot (NOV Update) with same info and it works perfectly fine.
Problem is only with Dec update

Error Deploy Vps

app_1 | 2022-11-27 15:54:22,959 - bot - INFO - Creating Telegraph Account
app_1 | Traceback (most recent call last):
app_1 | File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
app_1 | return _run_code(code, main_globals, None,
app_1 | File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
app_1 | exec(code, run_globals)
app_1 | File "/usr/src/app/bot/main.py", line 25, in
app_1 | from .modules import authorize, list, cancel_mirror, mirror_status, mirror_leech, clone, ytdlp, shell, eval, bot_settings,
app_1 | File "/usr/src/app/bot/modules/imdb.py", line 15, in
app_1 | imdb = IMDb()
app_1 | File "/usr/local/lib/python3.8/dist-packages/imdb/init.py", line 195, in IMDb
app_1 | from .parser.http import IMDbHTTPAccessSystem
app_1 | File "/usr/local/lib/python3.8/dist-packages/imdb/parser/http/init.py", line 165
app_1 | 'Mozilla/5.0 (X11; CrOS armv6l 13597.84.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.56')')
app_1 | ^
app_1 | SyntaxError: EOL while scanning string literal

upload

Hi dear
still for some files on telegram
status of these file gets stuck on 100%
/leech and /mirror command
Unfortunately no Error in log file
├[████████████▄] 100.0%

Clone error file not found

While using clone function, receiving error message as "file not found".

Expected behavior
File should be copied to the google drive folder.

Additional context
Token.pickle and rclone file were added in root folder.

PAID_SERVICE

what is happening in PAID_SERVICE vers in config.env?

upload

Hi dear
i invite you to see video please\

there is a little bug for some files on telegram upload status gets stuck

Is unified generator really working?

I want to ask anyone who can reply that UNIFIED GENERATOR is working or not, I tried appdrive but it doesn't work gives error as invalid token.

Can anyone confirm.

Mega Download Error

When the STOP_DUPLICATE variable is True mega download does not starts for the commands like mirror and zipmirror. But works fine for the leech commands.
But when STOP_DUPLICATE variable is False all downloads works fine for the mega links

Upload error

Files does not get uploaded to the drive. Getting this error.
RetryError[Future at 0xffff89ccd400 state=finished raised TypeError]
Here is the log
gdtot clone works fine
Generated Last 21 Lines from log.txt:

---------------- START LOG -----------------

2022-12-15 01:31:37,849 - bot - INFO - Download completed: Revenge_of_Others_S01E12_x264_540p_DSNP_WEB_DL_APEX_OnlyKDrama_com.mkv
2022-12-15 01:31:37,849 - bot - INFO - Upload Name: Revenge_of_Others_S01E12_x264_540p_DSNP_WEB_DL_APEX_OnlyKDrama_com.mkv
2022-12-15 01:31:37,849 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 48.json service account
2022-12-15 01:31:38,105 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Uploading File: /usr/src/app/downloads/31381/Revenge_of_Others_S01E12_x264_540p_DSNP_WEB_DL_APEX_OnlyKDrama_com.mkv
2022-12-15 01:31:38,531 - googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "userRateLimitExceeded"
2022-12-15 01:31:38,531 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Switching to 49.json service account
2022-12-15 01:31:38,531 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 49.json service account
2022-12-15 01:31:38,534 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Got: userRateLimitExceeded, Trying Again.
2022-12-15 01:32:30,995 - googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "userRateLimitExceeded"
2022-12-15 01:32:30,996 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Switching to 50.json service account
2022-12-15 01:32:30,996 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 50.json service account
2022-12-15 01:32:30,998 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Got: userRateLimitExceeded, Trying Again.
2022-12-15 01:33:24,495 - googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "userRateLimitExceeded"
2022-12-15 01:33:24,496 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Switching to 51.json service account
2022-12-15 01:33:24,496 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 51.json service account
2022-12-15 01:33:24,499 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Got: userRateLimitExceeded, Trying Again.
2022-12-15 01:34:20,001 - googleapiclient.http - WARNING - Encountered 403 Forbidden with reason "userRateLimitExceeded"
2022-12-15 01:34:20,002 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Switching to 52.json service account
2022-12-15 01:34:20,002 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 52.json service account
2022-12-15 01:34:20,015 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Got: userRateLimitExceeded, Trying Again.

---------------- END LOG -----------------

telegram.error.Unauthorized: Unauthorized : asyncio - ERROR - Unclosed client session :aiohttp.client.ClientSession object at 0x7f4d6c6696c0

telegram.error.Unauthorized: Unauthorized
2022-10-16T03:24:56.254515+00:00 app[web.1]: 2022-10-16 03:24:56,254 - asyncio - ERROR - Unclosed client session
2022-10-16T03:24:56.254544+00:00 app[web.1]: client_session: <aiohttp.client.ClientSession object at 0x7f4d6c6696c0>
2022-10-16T03:24:56.496315+00:00 heroku[web.1]: Process exited with status 1
2022-10-16T03:24:56.566790+00:00 heroku[web.1]: State changed from up to crashed
2022-10-16T03:24:56.569686+00:00 heroku[web.1]: State changed from crashed to starting

Please say solution

Gdtot Clone

There is a issue where after cloning the gdtot file the file gets deleted from the drive.
2022-11-28 14:46:09,269 - bot - INFO - Cloning Done: Fanletter.Please.S01.x264.540p.WEB-DL-LoveBug [OnlyKDrama.com].zip
2022-11-28 14:46:09,819 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Delete Result: Successfully deleted
I get the cloned successful message. But when I try to go to index of the file it says error 404 file bot found. File is also not in the teamdrive
And mega download also does not starts. I am using a normal mega account.

Thumbnail/weeb.jpg not found

Describe the bug
A clear and concise description of what the bug is.
When using log and list commands the output doesn't show.When I check the docker logs there is an error saying Thumbnail/weeb.jpg not found.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Not uploading to gdrive

Exception in thread Thread-46:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, self._kwargs)
File "/usr/src/app/bot/helper/mirror_utils/download_utils/qbit_downloader.py", line 194, in __check_limits
acpt = check_storage_threshold(size, arch)
File "/usr/src/app/bot/helper/ext_utils/fs_utils.py", line 94, in check_storage_threshold
if disk_usage(DOWNLOAD_DIR).free - size < STORAGE_THRESHOLD * 1024
3:
TypeError: '<' not supported between instances of 'int' and 'str'

New Error occuring since last night.

New error occured and build is failed since last night. I downloaded latest script from this repo and still this error is happening. Kindly look into it.
I am providing log detail for your reference

2023-01-02 04:16:08,376 - bot - INFO - Generating SESSION_STRING
2023-01-02 04:16:08,378 - root - INFO - Initializing Aria2c
Initiliazing Library with API_KEY: SzxWmAqB
2023/01/02 04:16:08 Serving on TCP :6090
[GIN] 2023/01/02 - 04:16:15 | 200 | 3.807912474s | 127.0.0.1 | POST "/login"
2023-01-02 04:16:15,196 - bot - INFO - TG_SPLIT_SIZE: 2097151000
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/usr/src/app/bot/init.py", line 908, in
updater = tgUpdater(token=BOT_TOKEN, request_kwargs={'read_timeout': 20, 'connect_timeout': 15})
TypeError: Updater.init() got an unexpected keyword argument 'token'
2023-01-02 04:16:31,678 - asyncio - ERROR - Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f21ff299120>

Restricted Content

Add an option leech or mirror files from restricted private or public tg channels using string session.(Only for the bot owner)

Download direct link list...

After direct_link_generator.py returns the result, how can we deal with the case where the result is a direct link list. I tried to edit the code in mirror_leech.py to add direct link to add_aria2c_download function one by one, but after starting to download the 2nd link, the 1st download link is deleted (not displayed and no longer loading), finally only download got the last link.
Sorry for my poor English.

/scrape option is creating issue on webseries or more links if listed

Describe the bug
The bot failed to load on /scrape option

list of links are displayed some times and failed most of the time when processed webseries
ex -

https://htpmovies.lol/hostages-2019-web-series-download-in-telugu-tamil-hindi-malayalam-kannada-hd-s01-s02-all-episodes-480p-720p-1080p/

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/scrape link '

  2. See error

Expected behavior
expected output result of links

Screenshots
Running scrape. Wait about some secs.

Additional context

error in log

2022-10-29 10:12:35,015 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/telegram/ext/utils/promise.py", line 96, in run
self._result = self.pooled_function(*self.args, **self.kwargs)
File "/usr/src/app/bot/modules/scraper.py", line 73, in scrapper
prsd += htpmovies(url) + '\n\n'
File "/usr/src/app/bot/modules/scraper.py", line 143, in htpmovies
title = soup.title.get_text()
AttributeError: 'NoneType' object has no attribute 'get_text'

Option request

please add option to display progress of links processing

how to deploy on windows vps?

i am using windows vps, but in the readme only instructions to install on linux vps, i can't deploy on windows vps. How to deploy bot on windows vps. Can you guide me in this case?

update prename function

Prename Function is very useful . I want some improvement in prename module .

  1. When mirror filename change to prename .
    Example:-
    Before Mirror
    www.TamilBlasters.skin - Kana Kaanum Kaalangal (2022) S02 EP(83-86) [HQHDRip - x264 - AAC - 500MB].mkv
    After Mirror
    @Prename - Kana Kaanum Kaalangal (2022) S02 EP(83-86) [HQHDRip - x264 - AAC - 500MB].mkv

  2. If link have already any prenames like @prename - Kana Kaanum Kaalangal (2022) S02 EP(83-86) [HQHDRip - x264 - AAC - 500MB].mkv
    Automatically change to user's prename
    Example :
    @newprename - Kana Kaanum Kaalangal (2022) S02 EP(83-86) [HQHDRip - x264 - AAC - 500MB].mkv

Thank you

Error When Starting bot

2023-01-02T11:53:15.448508+00:00 app[web.1]: 2023-01-02 11:53:15,448 - root - ERROR - One or more env variables missing! Exiting now
2023-01-02T11:53:15.576642+00:00 app[web.1]: 2023-01-02 11:53:15,576 - asyncio - ERROR - Unclosed client session
2023-01-02T11:53:15.576643+00:00 app[web.1]: client_session: <aiohttp.client.ClientSession object at 0x7f622d7b5990>

Feature Need

  1. Rclone Support
    Azure , Aws getting broken pipe error & Most of Team Drive or Shared Drives Are Dead
  2. Bypass short links
    ex : tnlink.in , dulink.in
    some scripts : Link-Bypasser-Bot , MultiFunctionBot
  3. Social Media DL
    ex: Twitter , Facebook , Instagram , ShareChat & etc.
    Already Some sites videos working , want photo download feature also

Archive.org upload?

Hello! love the repo. Is it possible to get our files uploaded to archive.org instead of google drive? Or have both, like /mirrorarchive and then it uploads to archive.org via the bot

Mirror utils *.json usage

Json accounts are created array 100 gives 0 to 99

while usage impleted till 100

bug
bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 100.json service account
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/app/bot/helper/mirror_utils/download_utils/gd_downloader.py", line 13, in add_gd_download
res, size, name, files = GoogleDriveHelper().helper(link)
File "/usr/src/app/bot/helper/mirror_utils/upload_utils/gdriveTools.py", line 65, in init
self.__service = self.__authorize()
File "/usr/src/app/bot/helper/mirror_utils/upload_utils/gdriveTools.py", line 91, in __authorize
credentials = service_account.Credentials.from_service_account_file(
File "/usr/local/lib/python3.8/dist-packages/google/oauth2/service_account.py", line 241, in from_service_account_file
info, signer = _service_account_info.from_filename(
File "/usr/local/lib/python3.8/dist-packages/google/auth/_service_account_info.py", line 79, in from_filename
with io.open(filename, "r", encoding="utf-8") as json_file:
FileNotFoundError: [Errno 2] No such file or directory: 'accounts/100.json'

Terabox

Is it possible, like the "own TD" feature, to mirror to users' own Terrabox? I mean terabox mirroring, not terabox link support . because TDs are no longer functioning properly and display the "userRateLimitExceeded" error. If it can, it would be very helpful at this moment.

Speedtest Module error

Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/telegram/ext/utils/promise.py", line 96, in run
self._result = self.pooled_function(*self.args, **self.kwargs)
File "/usr/src/app/bot/modules/speedtest.py", line 15, in speedtest
test = Speedtest()
File "/usr/local/lib/python3.8/dist-packages/speedtest.py", line 1095, in init
self.get_config()
File "/usr/local/lib/python3.8/dist-packages/speedtest.py", line 1127, in get_config
raise ConfigRetrievalError(e)
speedtest.ConfigRetrievalError: HTTP Error 403: Forbidden

How to fix this?

py mongo is going of charts as far i know i tried 3 diffrent m bots everyone of them got this

Describe the bug
A clear and concise description of what the bug is.

Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/app/bot/helper/mirror_utils/download_utils/telegram_downloader.py", line 85, in add_download
media = _dmsg.document or _dmsg.video or _dmsg.audio or None
AttributeError: 'NoneType' object has no attribute 'document'

To Reproduce
Steps to reproduce the behavior:

  1. Just run the bot and try to leech anything
  2. See error

Expected behavior
welp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.