fixing imports

This commit is contained in:
msramalho
2023-01-27 00:19:58 +00:00
parent ac000d5943
commit d1e4dde3f6
28 changed files with 38 additions and 161 deletions

View File

@@ -1,8 +1,7 @@
from __future__ import annotations
from dataclasses import dataclass
from abc import abstractmethod, ABC
from ..core import Metadata
from ..core import Step
from ..core import Metadata, Step
@dataclass
class Enricher(Step, ABC):

View File

@@ -1,10 +1,7 @@
import hashlib
from loguru import logger
from selenium.common.exceptions import TimeoutException
import time, requests
from . import Enricher
from ..utils import Webdriver
from ..core import Metadata

View File

@@ -4,8 +4,7 @@ from selenium.common.exceptions import TimeoutException
from . import Enricher
from ..utils import Webdriver
from ..core import Media
from ..core import Metadata
from ..core import Media, Metadata
class ScreenshotEnricher(Enricher):
name = "screenshot_enricher"

View File

@@ -1,10 +1,9 @@
import uuid
import ffmpeg, os, uuid
from loguru import logger
import ffmpeg, os
from . import Enricher
from ..core import Media
from ..core import Metadata
from ..core import Media, Metadata
class ThumbnailEnricher(Enricher):
"""

View File

@@ -1,12 +1,7 @@
import os
import shutil
import subprocess
import uuid
import os, shutil, subprocess, uuid
from loguru import logger
import time, requests
from ..core import Media
from ..core import Metadata
from ..core import Media, Metadata
from . import Enricher