mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2025-10-29 17:40:15 +00:00
Added instructions
This commit is contained in:
23
script.py
23
script.py
@@ -23,7 +23,7 @@ from src.tools import (GLOBAL, createLogFile, jsonFile, nameCorrector,
|
|||||||
|
|
||||||
__author__ = "Ali Parlakci"
|
__author__ = "Ali Parlakci"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
__version__ = "1.6.4"
|
__version__ = "1.6.4.1"
|
||||||
__maintainer__ = "Ali Parlakci"
|
__maintainer__ = "Ali Parlakci"
|
||||||
__email__ = "parlakciali@gmail.com"
|
__email__ = "parlakciali@gmail.com"
|
||||||
|
|
||||||
@@ -265,12 +265,15 @@ class PromptUser:
|
|||||||
|
|
||||||
if programMode == "subreddit":
|
if programMode == "subreddit":
|
||||||
|
|
||||||
subredditInput = input("subreddit (enter frontpage for frontpage): ")
|
subredditInput = input("(type frontpage for all subscribed subreddits,\n" \
|
||||||
|
" use plus to seperate multi subreddits:" \
|
||||||
|
" pics+funny+me_irl etc.)\n\n" \
|
||||||
|
"subreddit: ")
|
||||||
GLOBAL.arguments.subreddit = subredditInput
|
GLOBAL.arguments.subreddit = subredditInput
|
||||||
|
|
||||||
while not (subredditInput == "" or subredditInput.lower() == "frontpage"):
|
# while not (subredditInput == "" or subredditInput.lower() == "frontpage"):
|
||||||
subredditInput = input("subreddit: ")
|
# subredditInput = input("subreddit: ")
|
||||||
GLOBAL.arguments.subreddit += "+" + subredditInput
|
# GLOBAL.arguments.subreddit += "+" + subredditInput
|
||||||
|
|
||||||
if " " in GLOBAL.arguments.subreddit:
|
if " " in GLOBAL.arguments.subreddit:
|
||||||
GLOBAL.arguments.subreddit = "+".join(GLOBAL.arguments.subreddit.split())
|
GLOBAL.arguments.subreddit = "+".join(GLOBAL.arguments.subreddit.split())
|
||||||
@@ -297,7 +300,7 @@ class PromptUser:
|
|||||||
GLOBAL.arguments.time = "all"
|
GLOBAL.arguments.time = "all"
|
||||||
|
|
||||||
elif programMode == "multireddit":
|
elif programMode == "multireddit":
|
||||||
GLOBAL.arguments.user = input("\nredditor: ")
|
GLOBAL.arguments.user = input("\nmultireddit owner: ")
|
||||||
GLOBAL.arguments.multireddit = input("\nmultireddit: ")
|
GLOBAL.arguments.multireddit = input("\nmultireddit: ")
|
||||||
|
|
||||||
print("\nselect sort type:")
|
print("\nselect sort type:")
|
||||||
@@ -648,16 +651,16 @@ def download(submissions):
|
|||||||
def main():
|
def main():
|
||||||
|
|
||||||
VanillaPrint(
|
VanillaPrint(
|
||||||
f" Bulk Downloader for Reddit v{__version__}\n" \
|
f"\nBulk Downloader for Reddit v{__version__}\n" \
|
||||||
f" Written by Ali PARLAKCI – parlakciali@gmail.com\n\n" \
|
f"Written by Ali PARLAKCI – parlakciali@gmail.com\n\n" \
|
||||||
f" https://github.com/aliparlakci/bulk-downloader-for-reddit/"
|
f"https://github.com/aliparlakci/bulk-downloader-for-reddit/"
|
||||||
)
|
)
|
||||||
GLOBAL.arguments = parseArguments()
|
GLOBAL.arguments = parseArguments()
|
||||||
|
|
||||||
if GLOBAL.arguments.directory is not None:
|
if GLOBAL.arguments.directory is not None:
|
||||||
GLOBAL.directory = Path(GLOBAL.arguments.directory.strip())
|
GLOBAL.directory = Path(GLOBAL.arguments.directory.strip())
|
||||||
else:
|
else:
|
||||||
GLOBAL.directory = Path(input("download directory: ").strip())
|
GLOBAL.directory = Path(input("\ndownload directory: ").strip())
|
||||||
|
|
||||||
print("\n"," ".join(sys.argv),"\n",noPrint=True)
|
print("\n"," ".join(sys.argv),"\n",noPrint=True)
|
||||||
print(f"Bulk Downloader for Reddit v{__version__}\n",noPrint=True
|
print(f"Bulk Downloader for Reddit v{__version__}\n",noPrint=True
|
||||||
|
|||||||
Reference in New Issue
Block a user