From ae2f0066836b34b7176f28a6e17b1c65074ba1b7 Mon Sep 17 00:00:00 2001 From: L4GSP1KE Date: Fri, 4 Aug 2023 21:50:20 -0600 Subject: [PATCH] Fix piece_size_max TypeError --- src/prep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prep.py b/src/prep.py index 552cf48c5..60d0c731e 100644 --- a/src/prep.py +++ b/src/prep.py @@ -1929,7 +1929,7 @@ def get_edition(self, video, bdinfo, filelist, manual_edition): Create Torrent """ def create_torrent(self, meta, path, output_filename, piece_size_max): - piece_size_max = int(piece_size_max) + piece_size_max = int(piece_size_max) if piece_size_max is not None else 0 if meta['isdir'] == True: os.chdir(path) globs = glob.glob1(path, "*.mkv") + glob.glob1(path, "*.mp4") + glob.glob1(path, "*.ts")