Skip to content

Commit

Permalink
Don't download already downloaded videos
Browse files Browse the repository at this point in the history
Requesting to download existent videos will skip for better performance.

Signed-off-by: nanometer5088 <[email protected]>
  • Loading branch information
nanometer5088 committed Jun 21, 2023
1 parent e136fa3 commit f951ce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Do not change anything here
APP = {
"name": "CLI TikTok",
"version": 0.82
"version": 0.85
}


Expand Down
3 changes: 2 additions & 1 deletion src/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
def downloader(url):
ydl_opts = {
"format": "bestvideo*+bestaudio/best",
"outtmpl": os.getcwd() + "/video/by-creator/%(creator)s/%(id)s.%(ext)s",
"outtmpl": os.getcwd() + "/video/%(creator)s/%(id)s.%(ext)s",
"download_archive": os.getcwd() + "/video/.video_archive"
}
YoutubeDL(ydl_opts).download(url)

Expand Down

0 comments on commit f951ce5

Please sign in to comment.