You've already forked JapariArchive
hotfix
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
from __future__ import annotations
|
||||
from typing import TYPE_CHECKING
|
||||
import asyncio
|
||||
from datetime import datetime
|
||||
import gc
|
||||
import traceback
|
||||
import tracemalloc
|
||||
|
||||
from Classifier.classifyHelper import classify_all
|
||||
from Database.x_classes import DownloadMode
|
||||
@@ -62,7 +60,6 @@ async def download_loop(botData: RuntimeBotData):
|
||||
for tweet in new_posts: #posts should arrive here in chronological order
|
||||
await download_post(artist, tweet, botData)
|
||||
gc.collect()
|
||||
print(tracemalloc.get_traced_memory())
|
||||
|
||||
results[artist.name] = new_posts_count
|
||||
if artist.download_mode == DownloadMode.DOWNLOAD_ALL:
|
||||
|
||||
@@ -49,7 +49,7 @@ async def GetTweetMediaUrls(tweet : Tweet):
|
||||
|
||||
async def DownloadMedia(post_id, account_id, account_name, url_list : list, session) -> list[DownloadedMedia]:
|
||||
result : list[DownloadedMedia] = []
|
||||
path = f"{Global_Config("x_download_path")}{account_id}"
|
||||
path = f"{Global_Config["x_download_path"]}{account_id}"
|
||||
os.makedirs(path, exist_ok=True)
|
||||
|
||||
for idx, file_url in enumerate(url_list):
|
||||
|
||||
Reference in New Issue
Block a user