Include reddits direct video domain

This commit is contained in:
Matthew Adams
2021-04-14 08:52:15 +10:00
committed by GitHub
parent 592076aff3
commit bd161412d7

View File

@@ -18,7 +18,7 @@ def extractUrl(inputString):
def isSupportedUrl(url): def isSupportedUrl(url):
response = {'url': '', 'supported': 'false', 'messages': ''} response = {'url': '', 'supported': 'false', 'messages': ''}
supportedDomains = ['youtube', 'tiktok', 'instagram', 'reddit'] supportedDomains = ['youtube', 'tiktok', 'instagram', 'reddit', 'redd.it']
for domain in supportedDomains: for domain in supportedDomains:
if(domain in url): if(domain in url):
@@ -29,4 +29,4 @@ def isSupportedUrl(url):
response['messages'] = "Information: Supplied URL is not a supported domain. To force TikBot to attempt it anyway, include a '🤖' in your message." response['messages'] = "Information: Supplied URL is not a supported domain. To force TikBot to attempt it anyway, include a '🤖' in your message."
print(response['messages']) print(response['messages'])
return response return response