forked from rDrama/rDrama
1
0
Fork 0

letmegooglethat.com & lmgtfy.app > google.com

master
Aevann 2023-09-13 19:35:10 +03:00
parent e789440ccb
commit 3e7d558a77
1 changed files with 2 additions and 0 deletions

View File

@ -766,6 +766,8 @@ def normalize_url(url):
.replace('https://amp.', 'https://') \
.replace('https://cnn.com/cnn/', 'https://edition.cnn.com/') \
.replace('/amp/', '/') \
.replace('https://letmegooglethat.com/?q=', 'https://google.com/search?q=') \
.replace('https://lmgtfy.app/?q=', 'https://google.com/search?q=') \
if url.endswith('.amp'):
url = url.split('.amp')[0]