Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Commit f5f430b

Browse files
committed
direct_links.py: comment mega
we use mega_downloader.py Signed-off-by: goodmeow <[email protected]>
1 parent 6ad2dbd commit f5f430b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

userbot/modules/direct_links.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ async def direct_link_generator(request):
4141
reply += gdrive(link)
4242
elif 'zippyshare.com' in link:
4343
reply += zippy_share(link)
44-
elif 'mega.' in link:
45-
reply += mega_dl(link)
4644
elif 'yadi.sk' in link:
4745
reply += yandex_disk(link)
4846
elif 'cloud.mail.ru' in link:
@@ -154,7 +152,7 @@ def yandex_disk(url: str) -> str:
154152
return reply
155153
return reply
156154

157-
155+
"""
158156
def mega_dl(url: str) -> str:
159157
""" MEGA.nz direct links generator
160158
Using https://github.com/tonikelope/megadown"""
@@ -177,7 +175,7 @@ def mega_dl(url: str) -> str:
177175
size = naturalsize(int(data['file_size']))
178176
reply += f'[{name} ({size})]({dl_url})\n'
179177
return reply
180-
178+
"""
181179

182180
def cm_ru(url: str) -> str:
183181
""" cloud.mail.ru direct links generator

0 commit comments

Comments
 (0)