Skip to content

Commit

Permalink
To many
Browse files Browse the repository at this point in the history
  • Loading branch information
edge20200 committed Aug 27, 2024
1 parent 3a15f0c commit df5a1f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ async def do_the_thing(base_dir):
if reuse_torrent != None:
prep.create_base_from_existing_torrent(reuse_torrent, meta['base_dir'], meta['uuid'])
if meta['nohash'] == False and reuse_torrent == None:
prep.create_torrent(meta, Path(meta['path']), "BASE", meta.get('piece_size_max', 0))
prep.create_torrent(meta, Path(meta['path']), "BASE")
if meta['nohash']:
meta['client'] = "none"
elif os.path.exists(os.path.abspath(f"{meta['base_dir']}/tmp/{meta['uuid']}/BASE.torrent")) and meta.get('rehash', False) == True and meta['nohash'] == False:
prep.create_torrent(meta, Path(meta['path']), "BASE", meta.get('piece_size_max', 0))
prep.create_torrent(meta, Path(meta['path']), "BASE")
if int(meta.get('randomized', 0)) >= 1:
prep.create_random_torrents(meta['base_dir'], meta['uuid'], meta['randomized'], meta['path'])

Expand Down

0 comments on commit df5a1f8

Please sign in to comment.