Skip to content

Commit

Permalink
你怎么 -1 了
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 16, 2025
1 parent 5ed188c commit 0e631c8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public Torrent createOrGetTorrent(String torrentIdentifier, long torrentSize, Bo
Torrent torrent = new Torrent(null, torrentIdentifier, torrentSize, isPrivate);
t = torrentRepository.save(torrent);
}
if (t.getSize() == -1 && torrentSize != -1) {
t.setSize(torrentSize);
t = torrentRepository.save(t);
}
if (t.getPrivateTorrent() == null && isPrivate != null) {
t.setPrivateTorrent(isPrivate);
t = torrentRepository.save(t);
Expand Down

0 comments on commit 0e631c8

Please sign in to comment.