Skip to content

Commit 517c601

Browse files
committed
3.0.166
1 parent ebabfa5 commit 517c601

File tree

4 files changed

+341
-332
lines changed

4 files changed

+341
-332
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
9999
<details><summary>List all subcommands</summary>
100100

101101
$ library
102-
library (v3.0.165; 103 subcommands)
102+
library (v3.0.166; 103 subcommands)
103103

104104
Create database subcommands:
105105
╭─────────────────┬──────────────────────────────────────────╮

library/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from library.utils import argparse_utils, iterables
66
from library.utils.log_utils import log
77

8-
__version__ = "3.0.165"
8+
__version__ = "3.0.166"
99

1010
progs = {
1111
"Create database subcommands": {

library/mediadb/db_media.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def create(args):
2929
"""
3030
)
3131
if args.action in ("tube-add", "gallery-add", "web-add", "site-add"):
32+
args.db.execute("DROP INDEX IF EXISTS idx_media_path;")
3233
try:
3334
args.db.execute("CREATE UNIQUE INDEX IF NOT EXISTS media_uniq_path_idx ON media (playlists_id, path);")
3435
except sqlite3.IntegrityError:

0 commit comments

Comments
 (0)