Skip to content

Commit b37c0b3

Browse files
committed
rename to library
1 parent 690c3e0 commit b37c0b3

File tree

236 files changed

+791
-793
lines changed

Some content is hidden

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

236 files changed

+791
-793
lines changed

.github/README.md

Lines changed: 15 additions & 15 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/xklb)](https://pepy.tech/project/xklb)
11+
[![Downloads](https://static.pepy.tech/badge/library)](https://pepy.tech/project/library)
1212

1313
## Install
1414

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

17-
pip install xklb
17+
pip install library
1818

1919
Should also work on Mac OS.
2020

@@ -419,7 +419,7 @@ Or with `systemd`:
419419

420420
tee ~/.config/systemd/user/tabs.service
421421
[Unit]
422-
Description=xklb daily browser tabs
422+
Description=library 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=xklb daily browser tabs timer
432+
Description=library 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-
XKLB should:
787+
Library 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 xklb
1166-
https://www.google.com/search?q=xklb
1167-
https://duckduckgo.com/?q=xklb
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
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 xklb 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 library 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 xklb audio and video databases
1461+
But this should definitely also work with library 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 'xklb'
2144+
- tagged 'library'
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 'xklb-delete' in qBittorrent
2154+
When --mark-deleted is provided, the torrents are tagged with 'library-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 'xklb'
2169+
- tagged 'library'
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 'xklb-delete' in qBittorrent
2178+
When --mark-deleted is provided, the torrents are tagged with 'library-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/xklb/ | 4.4 kB | 12 |
2276+
| /home/xk/github/xk/lb/library/ | 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 |

.github/Windows.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Install dependencies with choco
1212
choco install mpv ffmpeg python fd
1313
```
1414

15-
Then install xklb and enjoy!
15+
Then install library and enjoy!
1616

1717
```fish
18-
pip install xklb
18+
pip install library
1919
lb
2020
```
2121

@@ -30,7 +30,7 @@ local media subcommands:
3030
watch [wt] Watch local media
3131
```
3232

33-
Optional: xklb[deluxe] deps: `choco install exiftool rust`
33+
Optional: library[deluxe] deps: `choco install exiftool rust`
3434

3535
<details>
3636
<summary><h3>Alternative environment: msys2</h3></summary>
@@ -55,7 +55,7 @@ Optional: xklb[deluxe] deps: `choco install exiftool rust`
5555
pacman -S mingw-w64-x86_64-mpv mingw-w64-x86_64-youtube-dl make automake python-pip python-wheel fish
5656
```
5757
58-
Optional: xklb[deluxe] deps:
58+
Optional: library[deluxe] deps:
5959
6060
```bash
6161
choco install exiftool

.github/workflows/push.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,21 @@ jobs:
6666
publish:
6767
needs: [test1, test2]
6868
runs-on: ubuntu-latest
69+
environment: publish
70+
permissions:
71+
contents: read
72+
id-token: write
73+
6974
timeout-minutes: 20
7075

7176
steps:
72-
- name: Checkout
73-
uses: actions/checkout@v4
77+
- uses: actions/checkout@v4
7478

75-
- name: Setup Python
76-
uses: actions/setup-python@v5
77-
with:
78-
python-version: "3.11"
79+
- uses: pdm-project/setup-pdm@v4
7980

8081
- run: |
81-
python -m pip install pdm
8282
pdm config request_timeout 100
83-
84-
- name: Build and publish
85-
run: pdm publish -u __token__ -P ${{ secrets.PYPI_TOKEN }}
83+
pdm publish
8684
8785
release:
8886
needs: publish
File renamed without changes.

0 commit comments

Comments
 (0)