[~] Refactor
This commit is contained in:
parent
4679b3b861
commit
450cab746e
@ -155,6 +155,7 @@ def tiktok_video_fetch(
|
||||
method = tiktok_video_fetch_t.method_t.tikcdn_io_curl
|
||||
|
||||
if method == tiktok_video_fetch_t.method_t.pyktok:
|
||||
import pyktok
|
||||
pyktok.save_tiktok(url)
|
||||
elif method == tiktok_video_fetch_t.method_t.tikcdn_io_curl:
|
||||
subprocess.check_call([
|
||||
@ -209,7 +210,6 @@ def tiktok_videos_fetch(
|
||||
method_str: Optional[str]=None,
|
||||
force: Optional[bool]=None,
|
||||
) -> Iterable[dict[str, Any]]:
|
||||
import pyktok
|
||||
import tqdm
|
||||
|
||||
if force is None:
|
||||
|
Loading…
Reference in New Issue
Block a user