forked from MarseyWorld/MarseyWorld
fix cnn urls broken bc of amp stripping
parent
6d90aa8408
commit
f8f6e5f37f
|
@ -764,6 +764,7 @@ def normalize_url(url):
|
||||||
.replace("/giphy.gif", "/giphy.webp") \
|
.replace("/giphy.gif", "/giphy.webp") \
|
||||||
.replace('https://www.google.com/amp/s/', 'https://') \
|
.replace('https://www.google.com/amp/s/', 'https://') \
|
||||||
.replace('https://amp.', 'https://') \
|
.replace('https://amp.', 'https://') \
|
||||||
|
.replace('https://cnn.com/cnn/', 'https://edition.cnn.com/') \
|
||||||
.replace('/amp/', '/') \
|
.replace('/amp/', '/') \
|
||||||
|
|
||||||
if url.endswith('.amp'):
|
if url.endswith('.amp'):
|
||||||
|
|
Loading…
Reference in New Issue