Skip to content

Commit

Permalink
Update webupload.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy1709 authored Sep 12, 2020
1 parent 390d573 commit 09a8104
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions userbot/plugins/webupload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("(?P<url>https?://[^\s]+)", t_response)
result = ""
for i in urls:
Expand All @@ -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\
Expand Down

0 comments on commit 09a8104

Please sign in to comment.