From f6eba6c5b05c5315a88197122e2ba89a803e338f Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Thu, 19 Jul 2018 15:22:12 +0300 Subject: [PATCH] Added more gfycat links --- README.md | 3 ++- src/downloader.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 62befcb..ce49456 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,10 @@ It should redirect to a page which shows your **imgur_client_id** and **imgur_cl them, there. ## Changelog -### [19/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/1a3836a8e1ba5d356de9778d179f25a1f1152432) +### [19/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/41cbb58db34f500a8a5ecc3ac4375bf6c3b275bb) - Added v.redd.it support - Added custom exception descriptions to FAILED.json file +- Fixed the bug that prevents downloading some gfycat URLs ### [13/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/9f831e1b784a770c82252e909462871401a05c11) - Change config.json file's path to home directory diff --git a/src/downloader.py b/src/downloader.py index 9515529..e7a93c8 100644 --- a/src/downloader.py +++ b/src/downloader.py @@ -253,8 +253,7 @@ class Gfycat: if url[-1:] == '/': url = url[:-1] - if 'gifs' in url: - url = "https://gfycat.com/" + url.split('/')[-1] + url = "https://gfycat.com/" + url.split('/')[-1] pageSource = (urllib.request.urlopen(url).read().decode().split('\n'))