Skip to content

Commit

Permalink
Fix piece_size_max TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
L4GSP1KE committed Aug 5, 2023
1 parent f6b592a commit ae2f006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

2 comments on commit ae2f006

@mesoller
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So with this changes, do we need to specify the piece size?

@L4GSP1KE
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

Please sign in to comment.