feat: store packaged user data under data directory
This commit is contained in:
+7
-2
@@ -5,7 +5,7 @@ import os
|
||||
import time
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from . import image_paths
|
||||
from . import appconfig, image_paths
|
||||
from .cdp import CDP, close_tab, create_tab, create_tab_info, find_product_tab, http_get
|
||||
|
||||
|
||||
@@ -834,7 +834,12 @@ def collect(account, task, on_step=None) -> dict:
|
||||
old_cover_src = read_cover_src(cdp)
|
||||
out_path = _get(task, "old_cover_path")
|
||||
if not out_path:
|
||||
out_path = image_paths.task_image_path("images", task, account, "old")
|
||||
out_path = image_paths.task_image_path(
|
||||
appconfig.image_dir(),
|
||||
task,
|
||||
account,
|
||||
"old",
|
||||
)
|
||||
_notify_collect_step(on_step, "download_cover")
|
||||
old_cover_path = download_cover(old_cover_src, out_path)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user