mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 17:24:54 +00:00
🧵 Add multithreading when getting image assets
This commit is contained in:
@@ -11,7 +11,7 @@ class BaseStockImageEngine(BaseEngine):
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def get(self, query: str, start: float, end: float) -> mp.ImageClip:
|
||||
def get(self, query: str, start: float, end: float, i = "") -> mp.ImageClip:
|
||||
"""
|
||||
Get a stock image based on a query.
|
||||
|
||||
@@ -19,6 +19,7 @@ class BaseStockImageEngine(BaseEngine):
|
||||
query (str): The query to search for.
|
||||
start (float): The starting time of the video clip.
|
||||
end (float): The ending time of the video clip.
|
||||
i (str): Unique identifier for the image, mandatory if running concurrently.
|
||||
|
||||
Returns:
|
||||
str: The path to the saved image.
|
||||
|
||||
Reference in New Issue
Block a user