Skip to content

Commit

Permalink
Fix MTV host logic when already a good host
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Oct 25, 2024
1 parent 0164d9c commit 6c0dd51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/trackers/MTV.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ async def upload(self, meta, disctype):
async def upload_with_retry(self, meta, cookiefile, common, img_host_index=1):
approved_image_hosts = ['ptpimg', 'imgbox']
total_size_limit = 25 * 1024 * 1024 # 25 MiB in bytes
images_reuploaded = False

# Helper function to calculate total size of the images
def calculate_total_size(image_list, image_sizes):
Expand Down

0 comments on commit 6c0dd51

Please sign in to comment.