Skip to content

Commit 46f46fd

Browse files
committed
redditadd: add force option to update selectively
1 parent f6b0631 commit 46f46fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/createdb/reddit_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def reddit_add(args=None) -> None:
313313
log.error(f"[{path}]: Skipping unknown URL")
314314
continue
315315

316-
if db_playlists.get_id(args, path) is None:
316+
if db_playlists.get_id(args, path) is None or args.force:
317317
try:
318318
if extractor_key == "reddit_praw_redditor":
319319
redditor_new(args, {"path": path, "name": name})

library/readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
4646
<img align="right" width="300" height="600" src="https://raw.githubusercontent.com/chapmanjacobd/library/main/.github/examples/art.avif" />
4747
48-
[![Downloads](https://static.pepy.tech/badge/xklb)](https://pepy.tech/project/xklb)
48+
[![Downloads](https://static.pepy.tech/badge/library)](https://pepy.tech/project/library)
4949
5050
## Install
5151

0 commit comments

Comments
 (0)