def is_already_short(url):
popular_shortening_urls = [
'bit.ly/',
'goo.gl/',
'ow.ly/',
'is.gd/',
'buff.ly/',
'adf.ly/',
'tinyurl.com/',
'bit.do/',
'mcaf.ee/',
't.co/',
'tiny.cc/',
'shorte.st/',
'idek.net/',
'po.st/',
'yep.it/',
'tr.im/',
settings.SITE_URL,
]
for shortening_url in popular_shortening_urls:
if shortening_url in url:
return True
return False
评论列表
文章目录