From dc4186d9efbf33e7f4e697933423abdfd677ac74 Mon Sep 17 00:00:00 2001 From: Audionut Date: Fri, 30 Aug 2024 11:01:02 +1000 Subject: [PATCH] Revert "Capitalization" This reverts commit 5478c8c1229b60a526b0ca5f1ce986b846c1dea8. --- src/trackers/HDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trackers/HDB.py b/src/trackers/HDB.py index 253d83bb7..cd7bf52a4 100644 --- a/src/trackers/HDB.py +++ b/src/trackers/HDB.py @@ -220,7 +220,7 @@ async def upload(self, meta): # Download new .torrent from site hdb_desc = open(f"{meta['base_dir']}/tmp/{meta['uuid']}/[{self.tracker}]DESCRIPTION.txt", 'r').read() torrent_path = f"{meta['base_dir']}/tmp/{meta['uuid']}/[{self.tracker}]{meta['clean_name']}.torrent" - torrent = torrent.read(torrent_path) + torrent = Torrent.read(torrent_path) # Check if the piece size exceeds 16 MiB and regenerate the torrent if needed if torrent.piece_size > 16777216: # 16 MiB in bytes