From 09a8104b13eea281c6ec6a2055e97b7caa6b94e4 Mon Sep 17 00:00:00 2001 From: "sandeep.n" <58665444+sandy1709@users.noreply.github.com> Date: Sun, 13 Sep 2020 02:08:39 +0530 Subject: [PATCH] Update webupload.py --- userbot/plugins/webupload.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/userbot/plugins/webupload.py b/userbot/plugins/webupload.py index b11688b328..ee29cc33de 100644 --- a/userbot/plugins/webupload.py +++ b/userbot/plugins/webupload.py @@ -120,10 +120,10 @@ async def _(event): t_response = stdout.decode().strip() if t_response: try: - t_response = json.dumps(json.loads(t_response), sort_keys=True, indent=4) - except Exception as e: - # some sites don't return valid JSONs - pass + t_response = json.dumps(json.loads(t_response), sort_keys=True, indent=4) + except Exception as e: + # some sites don't return valid JSONs + pass urls = re.findall("(?Phttps?://[^\s]+)", t_response) result = "" for i in urls: @@ -142,7 +142,8 @@ async def _(event): CMD_HELP.update( { "webupload": "__**PLUGIN NAME :** __ `webupload`\ - \n\n**Syntax : ** `.webupload` ?(.+?|) (?:--)(`anonfiles`|`transfer`|`filebin`|`anonymousfiles`|`megaupload`|`bayfiles`\ + \n\n**Syntax : **`.webupload` --(`fileio`|`oload`|`anonfiles`|`transfer`|`filebin`|`anonymousfiles`|`vshare`|`bayfiles`) or \ + \n `.webuplod` (path of file) --(`fileio`|`oload`|`anonfiles`|`transfer`|`filebin`|`anonymousfiles`|`vshare`|`bayfiles`)\ \n**Usage : **Upload the file to web according to your choice\ \n**Example : **`.webupload --anonfiles` tag this to a file\ \n\n**Syntax :** `.labstack` Reply to a media file or provide a directory\