[~] 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
|
method = tiktok_video_fetch_t.method_t.tikcdn_io_curl
|
||||||
|
|
||||||
if method == tiktok_video_fetch_t.method_t.pyktok:
|
if method == tiktok_video_fetch_t.method_t.pyktok:
|
||||||
|
import pyktok
|
||||||
pyktok.save_tiktok(url)
|
pyktok.save_tiktok(url)
|
||||||
elif method == tiktok_video_fetch_t.method_t.tikcdn_io_curl:
|
elif method == tiktok_video_fetch_t.method_t.tikcdn_io_curl:
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
@ -209,7 +210,6 @@ def tiktok_videos_fetch(
|
|||||||
method_str: Optional[str]=None,
|
method_str: Optional[str]=None,
|
||||||
force: Optional[bool]=None,
|
force: Optional[bool]=None,
|
||||||
) -> Iterable[dict[str, Any]]:
|
) -> Iterable[dict[str, Any]]:
|
||||||
import pyktok
|
|
||||||
import tqdm
|
import tqdm
|
||||||
|
|
||||||
if force is None:
|
if force is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user