diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index daf9a2c..570fde1 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,4 +1,8 @@ # Changes on *master* +## [28/08/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/d56efed1c6833a66322d9158523b89d0ce57f5de) +- Adjusted algorith used for extracting gfycat links because of gfycat's design change +- Ignore space at the end of the given directory + ## [16/08/2018](https://github.com/aliparlakci/bulk-downloader-for-reddit/tree/d56efed1c6833a66322d9158523b89d0ce57f5de) - Fix the bug that prevents downloading imgur videos diff --git a/script.py b/script.py index 640d186..fac3af8 100644 --- a/script.py +++ b/script.py @@ -655,9 +655,9 @@ def main(): GLOBAL.arguments = parseArguments() if GLOBAL.arguments.directory is not None: - GLOBAL.directory = Path(GLOBAL.arguments.directory) + GLOBAL.directory = Path(GLOBAL.arguments.directory.strip()) else: - GLOBAL.directory = Path(input("download directory: ")) + GLOBAL.directory = Path(input("download directory: ").strip()) print("\n"," ".join(sys.argv),"\n",noPrint=True) print(f"Bulk Downloader for Reddit v{__version__}\n",noPrint=True