Skip to content

Commit

Permalink
imgbb polish
Browse files Browse the repository at this point in the history
Doesn't need limiting here
  • Loading branch information
Audionut committed Dec 6, 2024
1 parent 1324a2b commit 946ca64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ def upload_image_task(self, args):
console.print("[yellow]imgbb failed, trying next image host")
return {'status': 'failed', 'reason': 'imgbb upload failed'}

img_url = response_data['data']['image']['url']
img_url = response_data['data']['medium']['url']
raw_url = response_data['data']['image']['url']
web_url = response_data['data']['url_viewer']
if meta['debug']:
Expand Down Expand Up @@ -3068,7 +3068,6 @@ def upload_screens(self, meta, screens, img_host_num, i, total_screens, custom_i
"oeimg": 1,
"ptscreens": 1,
"lensdump": 1,
"imgbb": 1,
}
default_pool_size = os.cpu_count()
pool_size = host_limits.get(img_host, default_pool_size)
Expand Down

0 comments on commit 946ca64

Please sign in to comment.