Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
change api torrent and fix some
Browse files Browse the repository at this point in the history
- Change api
- Fix direct

Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
vincreator and cclauss committed Aug 23, 2021
1 parent 1a509de commit 2888ebb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def fichier(link: str) -> str:
req = requests.post(url)
else:
pw = {"pass": pswd}
req = requests.post(url, data=pe)
req = requests.post(url, data=pw)
except:
raise DirectDownloadLinkException("ERROR: Unable to reach 1fichier server!")
if req.status_code == 404:
Expand Down
16 changes: 8 additions & 8 deletions bot/modules/torrent_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ async def next(self, client, message):
)

torrents_dict = {
'1337x': {'source': "https://slam-api.glitch.me/api/1337x/", 'result_str': RESULT_STR_1337},
'piratebay': {'source': "https://slam-api.glitch.me/api/piratebay/", 'result_str': RESULT_STR_PIRATEBAY},
'tgx': {'source': "https://slam-api.glitch.me/api/tgx/", 'result_str': RESULT_STR_TGX},
'yts': {'source': "https://slam-api.glitch.me/api/yts/", 'result_str': RESULT_STR_YTS},
'eztv': {'source': "https://slam-api.glitch.me/api/eztv/", 'result_str': RESULT_STR_EZTV},
'torlock': {'source': "https://slam-api.glitch.me/api/torlock/", 'result_str': RESULT_STR_TORLOCK},
'rarbg': {'source': "https://slam-api.glitch.me/api/rarbg/", 'result_str': RESULT_STR_RARBG},
'ts': {'source': "https://slam-api.glitch.me/api/all/", 'result_str': RESULT_STR_ALL}
'1337x': {'source': "https://api.eunhamirror.repl.co/api/1337x/", 'result_str': RESULT_STR_1337},
'piratebay': {'source': "https://api.eunhamirror.repl.co/api/piratebay/", 'result_str': RESULT_STR_PIRATEBAY},
'tgx': {'source': "https://api.eunhamirror.repl.co/api/tgx/", 'result_str': RESULT_STR_TGX},
'yts': {'source': "https://api.eunhamirror.repl.co/api/yts/", 'result_str': RESULT_STR_YTS},
'eztv': {'source': "https://api.eunhamirror.repl.co/api/eztv/", 'result_str': RESULT_STR_EZTV},
'torlock': {'source': "https://api.eunhamirror.repl.co/api/torlock/", 'result_str': RESULT_STR_TORLOCK},
'rarbg': {'source': "https://api.eunhamirror.repl.co/api/rarbg/", 'result_str': RESULT_STR_RARBG},
'ts': {'source': "https://api.eunhamirror.repl.co/api/all/", 'result_str': RESULT_STR_ALL}
}

torrent_handlers = []
Expand Down

0 comments on commit 2888ebb

Please sign in to comment.