mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	Removed link mode
This commit is contained in:
		
							
								
								
									
										20
									
								
								script.py
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								script.py
									
									
									
									
									
								
							| @@ -16,7 +16,6 @@ from pathlib import Path, PurePath | |||||||
|  |  | ||||||
| from src.downloader import Direct, Erome, Gfycat, Imgur, Self | from src.downloader import Direct, Erome, Gfycat, Imgur, Self | ||||||
| from src.errors import * | from src.errors import * | ||||||
| from src.parser import LinkDesigner |  | ||||||
| from src.searcher import getPosts | from src.searcher import getPosts | ||||||
| from src.tools import (GLOBAL, createLogFile, jsonFile, nameCorrector, | from src.tools import (GLOBAL, createLogFile, jsonFile, nameCorrector, | ||||||
|                        printToFile) |                        printToFile) | ||||||
| @@ -98,10 +97,6 @@ def parseArguments(arguments=[]): | |||||||
|                         action="store_true", |                         action="store_true", | ||||||
|                         default=False) |                         default=False) | ||||||
|  |  | ||||||
|     parser.add_argument("--link","-l", |  | ||||||
|                         help="Get posts from link", |  | ||||||
|                         metavar="link") |  | ||||||
|  |  | ||||||
|     parser.add_argument("--saved", |     parser.add_argument("--saved", | ||||||
|                         action="store_true", |                         action="store_true", | ||||||
|                         help="Triggers saved mode") |                         help="Triggers saved mode") | ||||||
| @@ -389,21 +384,6 @@ def prepareAttributes(): | |||||||
|     else: |     else: | ||||||
|         ATTRIBUTES["time"] = "all" |         ATTRIBUTES["time"] = "all" | ||||||
|  |  | ||||||
|     if GLOBAL.arguments.link is not None: |  | ||||||
|  |  | ||||||
|         GLOBAL.arguments.link = GLOBAL.arguments.link.strip("\"") |  | ||||||
|  |  | ||||||
|         ATTRIBUTES = LinkDesigner(GLOBAL.arguments.link) |  | ||||||
|  |  | ||||||
|         if GLOBAL.arguments.search is not None: |  | ||||||
|             ATTRIBUTES["search"] = GLOBAL.arguments.search |  | ||||||
|  |  | ||||||
|         if GLOBAL.arguments.sort is not None: |  | ||||||
|             ATTRIBUTES["sort"] = GLOBAL.arguments.sort |  | ||||||
|  |  | ||||||
|         if GLOBAL.arguments.time is not None: |  | ||||||
|             ATTRIBUTES["time"] = GLOBAL.arguments.time |  | ||||||
|  |  | ||||||
|     elif GLOBAL.arguments.subreddit is not None: |     elif GLOBAL.arguments.subreddit is not None: | ||||||
|         if type(GLOBAL.arguments.subreddit) == list:     |         if type(GLOBAL.arguments.subreddit) == list:     | ||||||
|             GLOBAL.arguments.subreddit = "+".join(GLOBAL.arguments.subreddit) |             GLOBAL.arguments.subreddit = "+".join(GLOBAL.arguments.subreddit) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user