Skip to content

Commit 64513d9

Browse files
committed
torrents_info.py: Modified 2 lines
1 parent cff0271 commit 64513d9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

library/playback/torrents_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,10 +895,10 @@ def gen_row(t):
895895
if 0.0 < file.progress < args.delete_incomplete:
896896
print(f"Deleting incomplete file: {file_path}")
897897
file_utils.trash(args, str(file_path), detach=False)
898-
elif file.progress == 100.0:
898+
elif file.progress == 1.0:
899899
print(f"Keeping complete file: {file_path}")
900900
else:
901-
print(f"Keeping {strings.percent(1 - (file.progress / 100))} incomplete file: {file_path}")
901+
print(f"Keeping {strings.percent(1 - file.progress)} incomplete file: {file_path}")
902902
break # Stop after deleting first valid path
903903

904904
alt_move_syntax = any(

library/usage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,10 @@ def play(action) -> str:
19881988
19891989
library torrents -pa
19901990
1991+
Aggregate tracker errors
1992+
1993+
library torrents --errored --trackers
1994+
19911995
Search for specific file
19921996
19931997
library torrents query -v --file-search query2

0 commit comments

Comments
 (0)