Skip to content

Commit b304237

Browse files
committed
torrents_info.py: Added text 'shuffle(torrents)'; Deleted text 'torrents = shuffle(torrents)'
1 parent 983b61b commit b304237

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/createdb/torrents_add.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def torrents_add():
167167
else:
168168
if torrent_info["info_hash"] in known_hashes and not args.force:
169169
if args.delete_files:
170+
log.info("[%s]: known info_hash; Deleting.", torrent_info["path"])
170171
trash(args, torrent_info["path"])
171172
else:
172173
log.info(

library/playback/torrents_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def shorten(s, width):
549549
elif args.sort == "remaining":
550550
torrents = sorted(torrents, key=lambda t: t.amount_left, reverse=reverse_sort)
551551
elif args.sort == "random":
552-
torrents = shuffle(torrents)
552+
shuffle(torrents)
553553
elif args.sort == "seeders":
554554
torrents = sorted(torrents, key=lambda t: t.num_complete, reverse=reverse_sort)
555555
elif args.sort == "leechers":

0 commit comments

Comments
 (0)