diff --git a/app/get_from_reddit.py b/app/get_from_reddit.py index 84a231ea..99966135 100644 --- a/app/get_from_reddit.py +++ b/app/get_from_reddit.py @@ -13,11 +13,12 @@ def get_image(boards): boards = random.choice(boards) domains = [ - 'my.mixtape.moe', + 'cdn.awwni.m', 'i.imgur.com', - 'imgur.com', 'i.redd.it', 'i.reddituploads.com', + 'imgur.com', + 'my.mixtape.moe', ] response = requests.get( @@ -26,4 +27,4 @@ def get_image(boards): ).json()['data']['children'] image_urls = list(filter(lambda x: x['data']['domain'] in domains, response)) - return random.choice(image_urls)['data']['url'].replace('http://', 'https://') \ No newline at end of file + return random.choice(image_urls)['data']['url'].replace('http://', 'https://')