2021-02-22 21:28:30 +13:00
|
|
|
|
#!/usr/bin/env python3
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
"""
|
2021-02-06 21:35:50 +13:00
|
|
|
|
This program downloads imgur, gfycat and direct image and video links of
|
2020-06-02 00:05:02 +12:00
|
|
|
|
saved posts from a reddit account. It is written in Python 3.
|
|
|
|
|
"""
|
|
|
|
|
import logging
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
import time
|
|
|
|
|
from io import StringIO
|
2021-02-25 22:32:06 +13:00
|
|
|
|
from pathlib import Path
|
2020-06-02 00:05:02 +12:00
|
|
|
|
from prawcore.exceptions import InsufficientScope
|
|
|
|
|
|
2021-02-07 14:05:18 +13:00
|
|
|
|
from bulkredditdownloader.arguments import Arguments
|
|
|
|
|
from bulkredditdownloader.config import Config
|
2021-02-07 20:08:24 +13:00
|
|
|
|
from bulkredditdownloader.site_downloaders.direct import Direct
|
|
|
|
|
from bulkredditdownloader.site_downloaders.erome import Erome
|
|
|
|
|
from bulkredditdownloader.site_downloaders.gallery import Gallery
|
|
|
|
|
from bulkredditdownloader.site_downloaders.gfycat import Gfycat
|
|
|
|
|
from bulkredditdownloader.site_downloaders.gif_delivery_network import GifDeliveryNetwork
|
|
|
|
|
from bulkredditdownloader.site_downloaders.imgur import Imgur
|
|
|
|
|
from bulkredditdownloader.site_downloaders.redgifs import Redgifs
|
|
|
|
|
from bulkredditdownloader.site_downloaders.self_post import SelfPost
|
|
|
|
|
from bulkredditdownloader.site_downloaders.vreddit import VReddit
|
|
|
|
|
from bulkredditdownloader.site_downloaders.youtube import Youtube
|
2021-02-07 14:05:18 +13:00
|
|
|
|
from bulkredditdownloader.errors import (AlbumNotDownloadedCompletely, DomainInSkip, FailedToDownload, FileAlreadyExistsError,
|
|
|
|
|
ImgurLimitError, ImgurLoginError, InvalidJSONFile, NoSuitablePost, NotADownloadableLinkError,
|
|
|
|
|
TypeInSkip, full_exc_info)
|
2021-02-07 14:09:31 +13:00
|
|
|
|
from bulkredditdownloader.json_helper import JsonFile
|
|
|
|
|
from bulkredditdownloader.program_mode import ProgramMode
|
2021-02-07 14:05:18 +13:00
|
|
|
|
from bulkredditdownloader.reddit import Reddit
|
|
|
|
|
from bulkredditdownloader.searcher import getPosts
|
|
|
|
|
from bulkredditdownloader.store import Store
|
|
|
|
|
from bulkredditdownloader.utils import GLOBAL, createLogFile, nameCorrector, printToFile
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2020-12-28 14:26:47 +13:00
|
|
|
|
from time import sleep
|
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
__author__ = "Ali Parlakci"
|
|
|
|
|
__license__ = "GPL"
|
2021-04-18 21:09:10 +12:00
|
|
|
|
__version__ = "1.10.0"
|
2020-06-02 00:05:02 +12:00
|
|
|
|
__maintainer__ = "Ali Parlakci"
|
|
|
|
|
__email__ = "parlakciali@gmail.com"
|
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
def postFromLog(filename):
|
2020-06-02 00:05:02 +12:00
|
|
|
|
"""Analyze a log file and return a list of dictionaries containing
|
|
|
|
|
submissions
|
|
|
|
|
"""
|
2021-02-06 21:35:50 +13:00
|
|
|
|
if Path.is_file(Path(filename)):
|
|
|
|
|
content = JsonFile(filename).read()
|
2020-06-02 00:05:02 +12:00
|
|
|
|
else:
|
|
|
|
|
print("File not found")
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
del content["HEADER"]
|
|
|
|
|
except KeyError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
posts = []
|
|
|
|
|
|
|
|
|
|
for post in content:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
if not content[post][-1]['TYPE'] is None:
|
2020-06-02 00:05:02 +12:00
|
|
|
|
posts.append(content[post][-1])
|
|
|
|
|
|
|
|
|
|
return posts
|
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
def isPostExists(post, directory):
|
2020-06-02 00:05:02 +12:00
|
|
|
|
"""Figure out a file's name and checks if the file already exists"""
|
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
filename = GLOBAL.config['filename'].format(**post)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
possible_extensions = [".jpg", ".png", ".mp4", ".gif", ".webm", ".md", ".mkv", ".flv"]
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
for extension in possible_extensions:
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
path = directory / Path(filename + extension)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
if path.exists():
|
|
|
|
|
return True
|
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
return False
|
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
|
|
|
|
|
def downloadPost(submission, directory):
|
2020-06-02 00:05:02 +12:00
|
|
|
|
downloaders = {
|
2021-02-06 21:35:50 +13:00
|
|
|
|
"imgur": Imgur, "gfycat": Gfycat, "erome": Erome, "direct": Direct, "self": SelfPost,
|
|
|
|
|
"redgifs": Redgifs, "gifdeliverynetwork": GifDeliveryNetwork,
|
2021-02-25 22:26:25 +13:00
|
|
|
|
"v.redd.it": VReddit, "youtube": Youtube, "gallery": Gallery
|
2020-06-02 00:05:02 +12:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
print()
|
2021-02-06 21:35:50 +13:00
|
|
|
|
if submission['TYPE'] in downloaders:
|
|
|
|
|
downloaders[submission['TYPE']](directory, submission)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
else:
|
|
|
|
|
raise NoSuitablePost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def download(submissions):
|
|
|
|
|
"""Analyze list of submissions and call the right function
|
|
|
|
|
to download each one, catch errors, update the log files
|
|
|
|
|
"""
|
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
downloaded_count = 0
|
2020-06-02 00:05:02 +12:00
|
|
|
|
duplicates = 0
|
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
failed_file = createLogFile("FAILED")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
if GLOBAL.arguments.unsave:
|
|
|
|
|
reddit = Reddit(GLOBAL.config['credentials']['reddit']).begin()
|
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
subs_length = len(submissions)
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
for i in range(len(submissions)):
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print(f"\n({i+1}/{subs_length})", end=" — ")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
print(submissions[i]['POSTID'],
|
|
|
|
|
f"r/{submissions[i]['SUBREDDIT']}",
|
|
|
|
|
f"u/{submissions[i]['REDDITOR']}",
|
|
|
|
|
submissions[i]['FLAIR'] if submissions[i]['FLAIR'] else "",
|
|
|
|
|
sep=" — ",
|
|
|
|
|
end="")
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print(f" – {submissions[i]['TYPE'].upper()}", end="", no_print=True)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
directory = GLOBAL.directory / \
|
|
|
|
|
GLOBAL.config["folderpath"].format(**submissions[i])
|
2020-06-04 03:10:25 +12:00
|
|
|
|
details = {
|
2021-02-25 22:32:06 +13:00
|
|
|
|
**submissions[i],
|
2021-02-06 21:35:50 +13:00
|
|
|
|
**{"TITLE": nameCorrector(
|
|
|
|
|
submissions[i]['TITLE'],
|
|
|
|
|
reference=str(directory)
|
|
|
|
|
+ GLOBAL.config['filename'].format(**submissions[i])
|
|
|
|
|
+ ".ext")}
|
2020-06-04 03:10:25 +12:00
|
|
|
|
}
|
|
|
|
|
filename = GLOBAL.config['filename'].format(**details)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
if isPostExists(details, directory):
|
2020-06-02 00:05:02 +12:00
|
|
|
|
print()
|
|
|
|
|
print(directory)
|
2020-06-04 03:10:25 +12:00
|
|
|
|
print(filename)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
print("It already exists")
|
|
|
|
|
duplicates += 1
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
if any(domain in submissions[i]['CONTENTURL'] for domain in GLOBAL.arguments.skip):
|
|
|
|
|
print()
|
|
|
|
|
print(submissions[i]['CONTENTURL'])
|
|
|
|
|
print("Domain found in skip domains, skipping post...")
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
try:
|
2021-02-25 22:32:06 +13:00
|
|
|
|
downloadPost(details, directory)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
GLOBAL.downloadedPosts.add(details['POSTID'])
|
2020-12-28 14:26:47 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
try:
|
|
|
|
|
if GLOBAL.arguments.unsave:
|
|
|
|
|
reddit.submission(id=details['POSTID']).unsave()
|
|
|
|
|
except InsufficientScope:
|
|
|
|
|
reddit = Reddit().begin()
|
|
|
|
|
reddit.submission(id=details['POSTID']).unsave()
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
downloaded_count += 1
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
except FileAlreadyExistsError:
|
|
|
|
|
print("It already exists")
|
2020-12-04 14:20:20 +13:00
|
|
|
|
GLOBAL.downloadedPosts.add(details['POSTID'])
|
2020-06-02 00:05:02 +12:00
|
|
|
|
duplicates += 1
|
|
|
|
|
|
|
|
|
|
except ImgurLoginError:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print("Imgur login failed. \nQuitting the program as unexpected errors might occur.")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
except ImgurLimitError as exception:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
failed_file.add({int(i + 1): [
|
|
|
|
|
"{class_name}: {info}".format(class_name=exception.__class__.__name__, info=str(exception)), details
|
2020-06-02 00:05:02 +12:00
|
|
|
|
]})
|
|
|
|
|
|
|
|
|
|
except NotADownloadableLinkError as exception:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print("{class_name}: {info}".format(class_name=exception.__class__.__name__, info=str(exception)))
|
|
|
|
|
failed_file.add({int(i + 1): [
|
|
|
|
|
"{class_name}: {info}".format(class_name=exception.__class__.__name__, info=str(exception)),
|
2020-06-02 00:05:02 +12:00
|
|
|
|
submissions[i]
|
|
|
|
|
]})
|
|
|
|
|
|
2020-06-04 03:10:25 +12:00
|
|
|
|
except TypeInSkip:
|
|
|
|
|
print()
|
|
|
|
|
print(submissions[i]['CONTENTURL'])
|
|
|
|
|
print("Skipping post...")
|
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
except DomainInSkip:
|
|
|
|
|
print()
|
|
|
|
|
print(submissions[i]['CONTENTURL'])
|
2020-06-04 03:10:25 +12:00
|
|
|
|
print("Skipping post...")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
except NoSuitablePost:
|
|
|
|
|
print("No match found, skipping...")
|
|
|
|
|
|
|
|
|
|
except FailedToDownload:
|
|
|
|
|
print("Failed to download the posts, skipping...")
|
2020-06-04 03:10:25 +12:00
|
|
|
|
except AlbumNotDownloadedCompletely:
|
|
|
|
|
print("Album did not downloaded completely.")
|
2021-02-06 21:35:50 +13:00
|
|
|
|
failed_file.add({int(i + 1): [
|
|
|
|
|
"{class_name}: {info}".format(class_name=exc.__class__.__name__, info=str(exc)),
|
2020-06-04 03:10:25 +12:00
|
|
|
|
submissions[i]
|
|
|
|
|
]})
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
except Exception as exc:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print("{class_name}: {info}\nSee CONSOLE_LOG.txt for more information".format(
|
|
|
|
|
class_name=exc.__class__.__name__, info=str(exc))
|
2020-06-02 00:05:02 +12:00
|
|
|
|
)
|
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
logging.error(sys.exc_info()[0].__name__, exc_info=full_exc_info(sys.exc_info()))
|
|
|
|
|
print(GLOBAL.log_stream.getvalue(), no_print=True)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
failed_file.add({int(i + 1): [
|
|
|
|
|
"{class_name}: {info}".format(class_name=exc.__class__.__name__, info=str(exc)),
|
2020-06-02 00:05:02 +12:00
|
|
|
|
submissions[i]
|
|
|
|
|
]})
|
|
|
|
|
|
|
|
|
|
if duplicates:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print(f"\nThere {'were' if duplicates > 1 else 'was'} {duplicates} duplicate{'s' if duplicates > 1 else ''}")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
if downloaded_count == 0:
|
|
|
|
|
print("Nothing is downloaded :(")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
else:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print(f"Total of {downloaded_count} link{'s' if downloaded_count > 1 else ''} downloaded!")
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
def printLogo():
|
2021-02-06 21:35:50 +13:00
|
|
|
|
VanillaPrint(f"\nBulk Downloader for Reddit v{__version__}\n"
|
|
|
|
|
f"Written by Ali PARLAKCI – parlakciali@gmail.com\n\n"
|
|
|
|
|
f"https://github.com/aliparlakci/bulk-downloader-for-reddit/\n"
|
|
|
|
|
)
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
def main():
|
2021-04-18 20:31:51 +12:00
|
|
|
|
if Path("config.json").exists():
|
|
|
|
|
GLOBAL.configDirectory = Path("config.json")
|
2020-06-02 00:05:02 +12:00
|
|
|
|
else:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
if not Path(GLOBAL.defaultConfigDirectory).is_dir():
|
|
|
|
|
os.makedirs(GLOBAL.defaultConfigDirectory)
|
|
|
|
|
GLOBAL.configDirectory = GLOBAL.defaultConfigDirectory / "config.json"
|
2020-06-02 00:05:02 +12:00
|
|
|
|
try:
|
|
|
|
|
GLOBAL.config = Config(GLOBAL.configDirectory).generate()
|
|
|
|
|
except InvalidJSONFile as exception:
|
2021-02-25 22:32:06 +13:00
|
|
|
|
VanillaPrint(str(exception.__class__.__name__), ">>", str(exception))
|
2020-06-02 00:05:02 +12:00
|
|
|
|
VanillaPrint("Resolve it or remove it to proceed")
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
2021-04-18 20:31:51 +12:00
|
|
|
|
sys.argv = sys.argv + GLOBAL.config["options"].split()
|
|
|
|
|
|
|
|
|
|
arguments = Arguments.parse()
|
|
|
|
|
GLOBAL.arguments = arguments
|
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
if arguments.set_filename:
|
|
|
|
|
Config(GLOBAL.configDirectory).setCustomFileName()
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
if arguments.set_folderpath:
|
|
|
|
|
Config(GLOBAL.configDirectory).setCustomFolderPath()
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
if arguments.set_default_directory:
|
|
|
|
|
Config(GLOBAL.configDirectory).setDefaultDirectory()
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
if arguments.set_default_options:
|
|
|
|
|
Config(GLOBAL.configDirectory).setDefaultOptions()
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
if arguments.use_local_config:
|
2020-06-05 00:34:22 +12:00
|
|
|
|
JsonFile("config.json").add(GLOBAL.config)
|
2021-02-06 21:35:50 +13:00
|
|
|
|
sys.exit()
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
if arguments.directory:
|
|
|
|
|
GLOBAL.directory = Path(arguments.directory.strip())
|
|
|
|
|
elif "default_directory" in GLOBAL.config and GLOBAL.config["default_directory"] != "":
|
2021-02-25 22:32:06 +13:00
|
|
|
|
GLOBAL.directory = Path(
|
|
|
|
|
GLOBAL.config["default_directory"].format(time=GLOBAL.RUN_TIME))
|
2020-06-02 00:05:02 +12:00
|
|
|
|
else:
|
|
|
|
|
GLOBAL.directory = Path(input("\ndownload directory: ").strip())
|
|
|
|
|
|
|
|
|
|
if arguments.downloaded_posts:
|
|
|
|
|
GLOBAL.downloadedPosts = Store(arguments.downloaded_posts)
|
|
|
|
|
else:
|
|
|
|
|
GLOBAL.downloadedPosts = Store()
|
|
|
|
|
|
|
|
|
|
printLogo()
|
2021-02-06 21:35:50 +13:00
|
|
|
|
print("\n", " ".join(sys.argv), "\n", no_print=True)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
if arguments.log is not None:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
log_dir = Path(arguments.log)
|
|
|
|
|
download(postFromLog(log_dir))
|
2020-06-02 00:05:02 +12:00
|
|
|
|
sys.exit()
|
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
program_mode = ProgramMode(arguments).generate()
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
try:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
posts = getPosts(program_mode)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
except Exception as exc:
|
2021-02-06 21:35:50 +13:00
|
|
|
|
logging.error(sys.exc_info()[0].__name__, exc_info=full_exc_info(sys.exc_info()))
|
|
|
|
|
print(GLOBAL.log_stream.getvalue(), no_print=True)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
print(exc)
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
if posts is None:
|
|
|
|
|
print("I could not find any posts in that URL")
|
|
|
|
|
sys.exit()
|
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
if GLOBAL.arguments.no_download:
|
|
|
|
|
pass
|
|
|
|
|
else:
|
|
|
|
|
download(posts)
|
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
2021-02-25 22:32:06 +13:00
|
|
|
|
GLOBAL.log_stream = StringIO()
|
2020-06-04 03:10:25 +12:00
|
|
|
|
logging.basicConfig(stream=GLOBAL.log_stream, level=logging.INFO)
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
VanillaPrint = print
|
|
|
|
|
print = printToFile
|
2021-02-06 21:35:50 +13:00
|
|
|
|
GLOBAL.RUN_TIME = str(time.strftime("%d-%m-%Y_%H-%M-%S", time.localtime(time.time())))
|
2020-06-02 00:05:02 +12:00
|
|
|
|
main()
|
|
|
|
|
|
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
|
if GLOBAL.directory is None:
|
2021-02-07 14:05:18 +13:00
|
|
|
|
GLOBAL.directory = Path("../..\\")
|
2021-02-25 22:32:06 +13:00
|
|
|
|
|
2020-06-02 00:05:02 +12:00
|
|
|
|
except Exception as exception:
|
|
|
|
|
if GLOBAL.directory is None:
|
2021-02-07 14:05:18 +13:00
|
|
|
|
GLOBAL.directory = Path("../..\\")
|
2021-02-06 21:35:50 +13:00
|
|
|
|
logging.error(sys.exc_info()[0].__name__, exc_info=full_exc_info(sys.exc_info()))
|
2020-06-04 03:10:25 +12:00
|
|
|
|
print(GLOBAL.log_stream.getvalue())
|
2020-06-02 00:05:02 +12:00
|
|
|
|
|
2021-02-06 21:35:50 +13:00
|
|
|
|
if not GLOBAL.arguments.quit:
|
|
|
|
|
input("\nPress enter to quit\n")
|