Add reddit to default suppported domains

This commit is contained in:
Matthew Adams
2021-04-13 18:12:04 +10:00
parent 4e2491a78c
commit 592076aff3

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'] supportedDomains = ['youtube', 'tiktok', 'instagram', 'reddit']
for domain in supportedDomains: for domain in supportedDomains:
if(domain in url): if(domain in url):