Skip to content

Commit 1d202f0

Browse files
committed
3.0.048
1 parent 0c0e285 commit 1d202f0

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
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.047; 98 subcommands)
102+
library (v3.0.048; 98 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.047"
8+
__version__ = "3.0.048"
99

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

library/mediadb/playlists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def playlists() -> None:
8181
{', sum(m.size) size' if 'size' in m_columns else ''}
8282
, count(*) count
8383
from media m
84-
JOIN ({query}) p on p.rowid = m.playlists_id
84+
JOIN ({query}) p on p.id = m.playlists_id
8585
group by m.playlists_id, coalesce(p.path, "Playlist-less media")
8686
order by count, p.path
8787
"""

library/utils/arggroups.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,56 +1565,56 @@ def filter_links(parent_parser):
15651565
parser.add_argument(
15661566
"--path-include",
15671567
"--include-path",
1568-
nargs="*",
1568+
nargs="+",
15691569
default=[],
15701570
help="path substrings for inclusion (all must match to include)",
15711571
)
15721572
parser.add_argument(
15731573
"--text-include",
15741574
"--include-text",
1575-
nargs="*",
1575+
nargs="+",
15761576
default=[],
15771577
help="link text substrings for inclusion (all must match to include)",
15781578
)
15791579
parser.add_argument(
15801580
"--after-include",
15811581
"--include-after",
1582-
nargs="*",
1582+
nargs="+",
15831583
default=[],
15841584
help="plain text substrings after URL for inclusion (all must match to include)",
15851585
)
15861586
parser.add_argument(
15871587
"--before-include",
15881588
"--include-before",
1589-
nargs="*",
1589+
nargs="+",
15901590
default=[],
15911591
help="plain text substrings before URL for inclusion (all must match to include)",
15921592
)
15931593
parser.add_argument(
15941594
"--path-exclude",
15951595
"--exclude-path",
1596-
nargs="*",
1596+
nargs="+",
15971597
default=["javascript:", "mailto:", "tel:"],
15981598
help="path substrings for exclusion (any must match to exclude)",
15991599
)
16001600
parser.add_argument(
16011601
"--text-exclude",
16021602
"--exclude-text",
1603-
nargs="*",
1603+
nargs="+",
16041604
default=[],
16051605
help="link text substrings for exclusion (any must match to exclude)",
16061606
)
16071607
parser.add_argument(
16081608
"--after-exclude",
16091609
"--exclude-after",
1610-
nargs="*",
1610+
nargs="+",
16111611
default=[],
16121612
help="plain text substrings after URL for exclusion (any must match to exclude)",
16131613
)
16141614
parser.add_argument(
16151615
"--before-exclude",
16161616
"--exclude-before",
1617-
nargs="*",
1617+
nargs="+",
16181618
default=[],
16191619
help="plain text substrings before URL for exclusion (any must match to exclude)",
16201620
)

library/utils/sqlgroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def construct_download_query(args, dl_status=False) -> tuple[str, dict]:
419419
{', p.extractor_config' if is_media_playlist and 'extractor_config' in pl_columns else ''}
420420
{', p.extractor_key' if is_media_playlist and 'extractor_key' in pl_columns else ", 'Playlist-less media' as extractor_key"}
421421
FROM {args.table} m
422-
{'LEFT JOIN playlists p on p.rowid = m.playlists_id' if is_media_playlist else ''}
422+
{'LEFT JOIN playlists p on p.id = m.playlists_id' if is_media_playlist else ''}
423423
WHERE 1=1
424424
{'and COALESCE(m.time_downloaded,0) = 0' if 'time_downloaded' in m_columns and not dl_status else ''}
425425
{f'and COALESCE(m.download_attempts,0) <= {args.download_retries}' if 'download_attempts' in m_columns and not dl_status else ''}

0 commit comments

Comments
 (0)