Skip to content

Commit 983b61b

Browse files
committed
3.0.151
1 parent 01d8eda commit 983b61b

File tree

4 files changed

+108
-69
lines changed

4 files changed

+108
-69
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.150; 104 subcommands)
102+
library (v3.0.151; 104 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.150"
8+
__version__ = "3.0.151"
99

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

library/playback/torrents_info.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,9 +563,15 @@ def shorten(s, width):
563563
elif args.sort == "time_completed":
564564
torrents = sorted(torrents, key=lambda t: t.completion_on, reverse=reverse_sort)
565565
elif args.sort == "time_remaining":
566-
torrents = sorted(torrents, key=lambda t: (not t.state_enum.is_complete and t.eta and t.eta < 8640000, t.eta), reverse=reverse_sort)
566+
torrents = sorted(
567+
torrents,
568+
key=lambda t: (not t.state_enum.is_complete and t.eta and t.eta < 8640000, t.eta),
569+
reverse=reverse_sort,
570+
)
567571
elif args.sort == "time_unseeded":
568-
torrents = sorted(torrents, key=lambda t: (t.num_complete == 0 and t.seen_complete > 0, t.seen_complete), reverse=reverse_sort)
572+
torrents = sorted(
573+
torrents, key=lambda t: (t.num_complete == 0 and t.seen_complete > 0, t.seen_complete), reverse=reverse_sort
574+
)
569575
elif args.sort == "time_downloading":
570576
torrents = sorted(torrents, key=lambda t: t.downloading_time, reverse=reverse_sort)
571577
elif args.sort == "time_seeding":

0 commit comments

Comments
 (0)