Skip to content

Commit

Permalink
fix: cli render snaptik
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton-byte committed Nov 28, 2023
1 parent d723744 commit 7830652
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tiktok_downloader/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ def info(url: str, js: Optional[bool] = False):
json.dumps(
[
{
'type': i.type,
'type': i.type.value,
'url': i.json,
"render": bool(i.render),
'watermark': i.watermark
} for i in ok
],
Expand All @@ -110,7 +111,10 @@ def info(url: str, js: Optional[bool] = False):
elif parse.save:
if parse.info:
info(parse.url, js=parse.json)
ok[0].download(parse.save, bar=True)
if ok[0].render:
ok[0].get_render().download(parse.save, bar=True)
else:
ok[0].download(parse.save, bar=True)
else:
os.system("python3 -m tiktok_downloader --help")
except requests.exceptions.ConnectionError:
Expand Down

1 comment on commit 7830652

@vercel
Copy link

@vercel vercel bot commented on 7830652 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.