Skip to content

Commit

Permalink
Fix GDToT domain issue
Browse files Browse the repository at this point in the history
  • Loading branch information
l3v11 authored Aug 26, 2022
1 parent cfb6814 commit 4a08b66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/helper/download_utils/ddl_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def gdtot(url: str) -> str:
client = requests.Session()
client.cookies.update({'crypt': GDTOT_CRYPT})
res = client.get(url)
res = client.get(f"https://new.gdtot.nl/dld?id={url.split('/')[-1]}")
dom = re.findall(r'https?://(.+)\.gdtot\.(.+)\/\S+\/\S+', url)[0]
res = client.get(f"https://{dom[0]}.gdtot.{dom[1]}/dld?id={url.split('/')[-1]}")
url = re.findall(r'URL=(.*?)"', res.text)[0]
info = {}
info['error'] = False
Expand Down

0 comments on commit 4a08b66

Please sign in to comment.