diff --git a/utils/output_utils.py b/utils/output_utils.py index 6a4710a..d084eb4 100644 --- a/utils/output_utils.py +++ b/utils/output_utils.py @@ -177,6 +177,7 @@ def upload_media_to_hoster(filepath: str): except: raise Exception("Upload not possible, all hosters didn't work or couldn't generate output") + def build_status_reaction(status, task, amount, content): alt_description = "This is a reaction to a NIP90 DVM AI task. " diff --git a/utils/scrapper/media_scrapper.py b/utils/scrapper/media_scrapper.py index 71b89a9..c91f25e 100644 --- a/utils/scrapper/media_scrapper.py +++ b/utils/scrapper/media_scrapper.py @@ -493,14 +493,14 @@ def InstagramDownload(url, name, path) -> str: print(video_url) if video_url: response = requests.get(video_url) - with open(path + "insta" + name + ".mp4", "wb") as f: + with open(path + "/" + name + ".mp4", "wb") as f: f.write(response.content) - return path + "insta" + name + ".mp4" + return path + "/" + name + ".mp4" elif photo_url: response = requests.get(photo_url) - with open(path + "insta" + name + ".jpg", "wb") as f: + with open(path + name + "/" + ".jpg", "wb") as f: f.write(response.content) - return path + "insta" + name + ".jpg" + return path + "/" + name + ".jpg" def InstagramDownloadAll(linklist, path) -> str: