|
|
|
@ -16,6 +16,7 @@ from ArtNet.web.link_generator import LinkGenerator
|
|
|
|
|
class ArtNetManager:
|
|
|
|
|
|
|
|
|
|
def __init__(self, config_location: str = "."):
|
|
|
|
|
self.known_image_amount = None
|
|
|
|
|
self.config = ConfigReader(config_location, "somePassword")
|
|
|
|
|
|
|
|
|
|
if self.config.data["version"] != self.config.CONFIG_VERSION:
|
|
|
|
@ -63,7 +64,8 @@ class ArtNetManager:
|
|
|
|
|
self.window.set_temporary_status_message("Hello o7", 5000)
|
|
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
|
if len(self.all_images) > 0:
|
|
|
|
|
if len(self.all_images) == 0:
|
|
|
|
|
raise FileNotFoundError("No files or folders were in artnet root!")
|
|
|
|
|
self.curr_image_index = 0
|
|
|
|
|
self.refresh_shown_image()
|
|
|
|
|
|
|
|
|
@ -89,6 +91,8 @@ class ArtNetManager:
|
|
|
|
|
if self.db_connection.get_art_by_path(image) is not None:
|
|
|
|
|
self.known_image_amount += 1
|
|
|
|
|
|
|
|
|
|
self.window.ui.imageNumberSpinBox.setMaximum(len(self.all_images))
|
|
|
|
|
|
|
|
|
|
def scrape_tags(self, file_name: str, art_ID: int, url: str=None):
|
|
|
|
|
"""
|
|
|
|
|
Scrape the tags from the given url and return which one's are new
|
|
|
|
|