Ignore space at the end of directory
This commit is contained in:
parent
da5492858c
commit
f807efe4d5
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue