From 3e3a2df4d176d110337d0736cf6d2e65be5cb4bc Mon Sep 17 00:00:00 2001 From: Ali Parlakci Date: Fri, 20 Jul 2018 13:33:50 +0300 Subject: [PATCH] Bug fix at direct links --- README.md | 3 ++- script.py | 2 +- src/searcher.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 31b6b96..65301fc 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,9 @@ It should redirect to a page which shows your **imgur_client_id** and **imgur_cl them, there. ## Changelog -### [20/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/e15f33b97ae24167243db64b41d52757dea3caad) +### [20/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/commit/7548a010198fb693841ca03654d2c9bdf5742139) - "0" input for no limit +- Fixed the bug that recognizes none image direct links as image links ### [19/07/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/41cbb58db34f500a8a5ecc3ac4375bf6c3b275bb) - Added v.redd.it support diff --git a/script.py b/script.py index c59b3f3..345606f 100644 --- a/script.py +++ b/script.py @@ -22,7 +22,7 @@ from src.tools import (GLOBAL, createLogFile, jsonFile, nameCorrector, __author__ = "Ali Parlakci" __license__ = "GPL" -__version__ = "1.2.0" +__version__ = "1.2.1" __maintainer__ = "Ali Parlakci" __email__ = "parlakciali@gmail.com" diff --git a/src/searcher.py b/src/searcher.py index 78424af..1a8ab4e 100644 --- a/src/searcher.py +++ b/src/searcher.py @@ -397,7 +397,7 @@ def checkIfMatching(submission): imgurCount += 1 return details - elif isDirectLink(submission.url) is not None: + elif isDirectLink(submission.url) is not False: details['postType'] = 'direct' details['postURL'] = isDirectLink(submission.url) directCount += 1