mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	Stylize print outs
This commit is contained in:
		
							
								
								
									
										18
									
								
								script.py
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								script.py
									
									
									
									
									
								
							| @@ -210,8 +210,8 @@ class PromptUser: | |||||||
|         programMode = self.chooseFrom(programModes) |         programMode = self.chooseFrom(programModes) | ||||||
|  |  | ||||||
|         if programMode == "search": |         if programMode == "search": | ||||||
|             GLOBAL.arguments.search = input("query: ") |             GLOBAL.arguments.search = input("\nquery: ") | ||||||
|             GLOBAL.arguments.subreddit = input("subreddit: ") |             GLOBAL.arguments.subreddit = input("\nsubreddit: ") | ||||||
|  |  | ||||||
|             print("\nselect sort type:") |             print("\nselect sort type:") | ||||||
|             sortTypes = [ |             sortTypes = [ | ||||||
| @@ -228,7 +228,7 @@ class PromptUser: | |||||||
|             GLOBAL.arguments.time = timeFilter |             GLOBAL.arguments.time = timeFilter | ||||||
|  |  | ||||||
|         if programMode == "subreddit": |         if programMode == "subreddit": | ||||||
|             GLOBAL.arguments.subreddit = input("subreddit: ") |             GLOBAL.arguments.subreddit = input("\nsubreddit: ") | ||||||
|             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()) | ||||||
|  |  | ||||||
| @@ -250,8 +250,8 @@ class PromptUser: | |||||||
|                 GLOBAL.arguments.time = "all" |                 GLOBAL.arguments.time = "all" | ||||||
|  |  | ||||||
|         elif programMode == "multireddit": |         elif programMode == "multireddit": | ||||||
|             GLOBAL.arguments.user = input("redditor: ") |             GLOBAL.arguments.user = input("\nredditor: ") | ||||||
|             GLOBAL.arguments.subreddit = input("multireddit: ") |             GLOBAL.arguments.subreddit = input("\nmultireddit: ") | ||||||
|              |              | ||||||
|             print("\nselect sort type:") |             print("\nselect sort type:") | ||||||
|             sortTypes = [ |             sortTypes = [ | ||||||
| @@ -272,7 +272,7 @@ class PromptUser: | |||||||
|          |          | ||||||
|         elif programMode == "submitted": |         elif programMode == "submitted": | ||||||
|             GLOBAL.arguments.submitted = True |             GLOBAL.arguments.submitted = True | ||||||
|             GLOBAL.arguments.user = input("redditor: ") |             GLOBAL.arguments.user = input("\nredditor: ") | ||||||
|  |  | ||||||
|             print("\nselect sort type:") |             print("\nselect sort type:") | ||||||
|             sortTypes = [ |             sortTypes = [ | ||||||
| @@ -293,20 +293,20 @@ class PromptUser: | |||||||
|          |          | ||||||
|         elif programMode == "upvoted": |         elif programMode == "upvoted": | ||||||
|             GLOBAL.arguments.upvoted = True |             GLOBAL.arguments.upvoted = True | ||||||
|             GLOBAL.arguments.user = input("redditor: ") |             GLOBAL.arguments.user = input("\nredditor: ") | ||||||
|          |          | ||||||
|         elif programMode == "saved": |         elif programMode == "saved": | ||||||
|             GLOBAL.arguments.saved = True |             GLOBAL.arguments.saved = True | ||||||
|          |          | ||||||
|         elif programMode == "log": |         elif programMode == "log": | ||||||
|             while True: |             while True: | ||||||
|                 GLOBAL.arguments.log = input("log file directory:") |                 GLOBAL.arguments.log = input("\nlog file directory:") | ||||||
|                 if Path(GLOBAL.arguments.log ).is_file(): |                 if Path(GLOBAL.arguments.log ).is_file(): | ||||||
|                     break  |                     break  | ||||||
|  |  | ||||||
|         while True: |         while True: | ||||||
|             try: |             try: | ||||||
|                 GLOBAL.arguments.limit = int(input("limit: ")) |                 GLOBAL.arguments.limit = int(input("\nlimit: ")) | ||||||
|                 break |                 break | ||||||
|             except ValueError: |             except ValueError: | ||||||
|                 pass |                 pass | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user