Skip to content

Commit 297cb98

Browse files
committed
3.0.034
1 parent b37c0b3 commit 297cb98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+80
-60
lines changed

.github/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ tracking online video playlists (eg. YouTube subscriptions) and scheduling brows
88

99
<img align="right" width="300" height="600" src="https://raw.githubusercontent.com/chapmanjacobd/library/main/.github/examples/art.avif" />
1010

11-
[![Downloads](https://static.pepy.tech/badge/library)](https://pepy.tech/project/library)
11+
[![Downloads](https://static.pepy.tech/badge/xklb)](https://pepy.tech/project/xklb)
1212

1313
## Install
1414

1515
Linux recommended but [Windows setup instructions](./Windows.md) available.
1616

17-
pip install library
17+
pip install xklb
1818

1919
Should also work on Mac OS.
2020

@@ -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.033; 99 subcommands)
102+
library (v3.0.032; 99 subcommands)
103103

104104
Create database subcommands:
105105
╭─────────────────┬──────────────────────────────────────────╮
@@ -419,7 +419,7 @@ Or with `systemd`:
419419

420420
tee ~/.config/systemd/user/tabs.service
421421
[Unit]
422-
Description=library daily browser tabs
422+
Description=xklb daily browser tabs
423423

424424
[Service]
425425
Type=simple
@@ -429,7 +429,7 @@ Or with `systemd`:
429429

430430
tee ~/.config/systemd/user/tabs.timer
431431
[Unit]
432-
Description=library daily browser tabs timer
432+
Description=xklb daily browser tabs timer
433433

434434
[Timer]
435435
Persistent=yes
@@ -784,7 +784,7 @@ BTW, for some cols like time_deleted you'll need to specify a where clause so th
784784

785785
IRIs vs URLs
786786

787-
Library should:
787+
XKLB should:
788788
- print paths as unquoted UTF-8 IRIs (by default)
789789
- accept either IRIs or URLs as input with optional flags to make parsing/searching explicitly use one or the other
790790
- save paths to the database "AS-IS"
@@ -1162,9 +1162,9 @@ BTW, for some cols like time_deleted you'll need to specify a where clause so th
11621162

11631163
Expand search URLs with multiple queries
11641164

1165-
library expand-links -s https://www.google.com/search?q=%s -s https://duckduckgo.com/?q=%s library
1166-
https://www.google.com/search?q=library
1167-
https://duckduckgo.com/?q=library
1165+
library expand-links -s https://www.google.com/search?q=%s -s https://duckduckgo.com/?q=%s xklb
1166+
https://www.google.com/search?q=xklb
1167+
https://duckduckgo.com/?q=xklb
11681168

11691169
library expand-links -s https://www.walmart.com/search?q=%s -s https://www.target.com/s?searchTerm=%s "Dr. Pepper" pepcidine
11701170
https://www.walmart.com/search?q=Dr%20Pepper
@@ -1454,11 +1454,11 @@ BTW, for some cols like time_deleted you'll need to specify a where clause so th
14541454
Free up space on a specific disk. Find candidates for moving data to a different mount point
14551455

14561456

1457-
The program takes a mount point and a library database file. If you don't have a database file you can create one like this
1457+
The program takes a mount point and a xklb database file. If you don't have a database file you can create one like this
14581458

14591459
library fsadd --filesystem d.db ~/d/
14601460

1461-
But this should definitely also work with library audio and video databases
1461+
But this should definitely also work with xklb audio and video databases
14621462

14631463
library mv-list /mnt/d/ video.db
14641464

@@ -2141,7 +2141,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21412141
usage: library torrents-stop
21422142

21432143
Stop torrents in qBittorrent-nox with the following defaults:
2144-
- tagged 'library'
2144+
- tagged 'xklb'
21452145
- >180 days active seeding
21462146
- >90 days since last peer
21472147
- >3 current seeders
@@ -2151,7 +2151,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21512151

21522152
library torrents-stop --min-seeders 3 --min-days-stalled-seed 10 --min-days-seeding 14
21532153

2154-
When --mark-deleted is provided, the torrents are tagged with 'library-delete' in qBittorrent
2154+
When --mark-deleted is provided, the torrents are tagged with 'xklb-delete' in qBittorrent
21552155
When --delete-rows is provided, the metadata is removed from qBittorrent
21562156
When --delete-files is provided, the downloaded files are deleted
21572157

@@ -2166,7 +2166,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21662166
usage: library torrents-stop-incomplete
21672167

21682168
Stop torrents in qBittorrent-nox with the following defaults:
2169-
- tagged 'library'
2169+
- tagged 'xklb'
21702170
- >90 days since last seen complete (or never)
21712171
- >60 days active downloading
21722172
- >30 days since last peer (or never)
@@ -2175,7 +2175,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
21752175

21762176
library torrents-stop --min-days-downloading 7
21772177

2178-
When --mark-deleted is provided, the torrents are tagged with 'library-delete' in qBittorrent
2178+
When --mark-deleted is provided, the torrents are tagged with 'xklb-delete' in qBittorrent
21792179
When --delete-rows is provided, the metadata is removed from qBittorrent
21802180
When --delete-files is provided, all downloaded files are deleted.
21812181
By default, salvage is provided to files which have more than 73% progress.
@@ -2273,7 +2273,7 @@ Inspired somewhat by https://nikkhokkho.sourceforge.io/?page=FileOptimizer
22732273
| /home/xk/github/xk/lb/__pycache__/ | 620 Bytes | 1 |
22742274
| /home/xk/github/xk/lb/.github/ | 1.7 kB | 4 |
22752275
| /home/xk/github/xk/lb/__pypackages__/ | 1.4 MB | 3519 |
2276-
| /home/xk/github/xk/lb/library/ | 4.4 kB | 12 |
2276+
| /home/xk/github/xk/lb/xklb/ | 4.4 kB | 12 |
22772277
| /home/xk/github/xk/lb/tests/ | 3.2 kB | 9 |
22782278
| /home/xk/github/xk/lb/.git/ | 782.4 kB | 2276 |
22792279
| /home/xk/github/xk/lb/.pytest_cache/ | 1.5 kB | 5 |

library/createdb/fs_add.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@
88
from library.createdb.fs_add_metadata import extract_image_metadata_chunk, extract_metadata
99
from library.createdb.subtitle import clean_up_temp_dirs
1010
from library.mediadb import db_media, db_playlists, playlists
11-
from library.utils import arg_utils, arggroups, argparse_utils, consts, db_utils, file_utils, iterables, objects, printing
11+
from library.utils import (
12+
arg_utils,
13+
arggroups,
14+
argparse_utils,
15+
consts,
16+
db_utils,
17+
file_utils,
18+
iterables,
19+
objects,
20+
printing,
21+
)
1222
from library.utils.consts import SC, DBType
1323
from library.utils.log_utils import log
1424

library/misc/dedupe_czkawka.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66

77
from library import usage
88
from library.playback import media_player, post_actions
9-
from library.utils import arggroups, argparse_utils, consts, devices, file_utils, iterables, mpv_utils, processes, strings
9+
from library.utils import (
10+
arggroups,
11+
argparse_utils,
12+
consts,
13+
devices,
14+
file_utils,
15+
iterables,
16+
mpv_utils,
17+
processes,
18+
strings,
19+
)
1020
from library.utils.log_utils import log
1121

1222
left_mpv_socket = str(Path(consts.TEMP_SCRIPT_DIR) / f"mpv_socket_{consts.random_string()}")

tests/createdb/test_hn_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from tests.utils import connect_db_args
21
from library.__main__ import library as lb
2+
from tests.utils import connect_db_args
33

44

55
def test_lb_hn_add(temp_db):

tests/createdb/test_links_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from tests.utils import connect_db_args
21
from library.__main__ import library as lb
2+
from tests.utils import connect_db_args
33

44

55
def test_links_add(temp_db):

tests/createdb/test_row_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22

3-
from tests.utils import connect_db_args
43
from library.__main__ import library as lb
4+
from tests.utils import connect_db_args
55

66

77
def test_lb_row_add_success(temp_db):

tests/createdb/test_substack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from tests.utils import connect_db_args
21
from library.__main__ import library as lb
2+
from tests.utils import connect_db_args
33

44

55
def test_substack_add(temp_db):

tests/createdb/test_tables_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from tests.utils import connect_db_args
21
from library.__main__ import library as lb
2+
from tests.utils import connect_db_args
33

44
simple = '{"A": 1, "B": 3, "C": 5}\n{"A": 2, "B": 4, "C": 6}'
55

tests/createdb/test_tabs_add.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
from library.__main__ import library as lb
12
from tests.playback import test_tabs_open
23
from tests.utils import connect_db_args
3-
from library.__main__ import library as lb
44

55

66
def test_tabs_add(temp_db):

tests/createdb/test_tildes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from tests.utils import connect_db_args
21
from library.__main__ import library as lb
2+
from tests.utils import connect_db_args
33

44

55
def test_tildes_add(temp_db):

0 commit comments

Comments
 (0)