Skip to content

Commit

Permalink
MTV - add imgbb as approved host
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Dec 16, 2024
1 parent 6ac3b2b commit 8cfdab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trackers/MTV.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def upload(self, meta, disctype):
await self.upload_with_retry(meta, cookiefile, common)

async def upload_with_retry(self, meta, cookiefile, common, img_host_index=1):
approved_image_hosts = ['ptpimg', 'imgbox']
approved_image_hosts = ['ptpimg', 'imgbox', 'imgbb']
images_reuploaded = False

if all(any(host in image['raw_url'] for host in approved_image_hosts) for image in meta['image_list']):
Expand Down Expand Up @@ -179,7 +179,7 @@ async def upload_with_retry(self, meta, cookiefile, common, img_host_index=1):

async def handle_image_upload(self, meta, img_host_index=1, approved_image_hosts=None, file=None):
if approved_image_hosts is None:
approved_image_hosts = ['ptpimg', 'imgbox']
approved_image_hosts = ['ptpimg', 'imgbox', 'imgbb']

retry_mode = False
images_reuploaded = False
Expand Down

0 comments on commit 8cfdab9

Please sign in to comment.