Skip to content

Commit

Permalink
Update BHD.py
Browse files Browse the repository at this point in the history
Add some spaces for screenshots in description
  • Loading branch information
ppkhoa authored Dec 11, 2024
1 parent d0dbcdb commit cf3fb14
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/trackers/BHD.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,18 @@ async def edit_desc(self, meta):
else:
images = meta['image_list']
if len(images) > 0:
desc.write("[center]")
desc.write("[align=center]")
for each in range(len(images[:int(meta['screens'])])):
web_url = images[each]['web_url']
img_url = images[each]['img_url']
desc.write(f"[url={web_url}][img width=350]{img_url}[/img][/url]")
desc.write("[/center]")
if (each == len(images) - 1):
desc.write(f"[url={web_url}][img width=350]{img_url}[/img][/url]")
elif (each + 1) % 2 == 0:
desc.write(f"[url={web_url}][img width=350]{img_url}[/img][/url]\n")
desc.write("\n")
else:
desc.write(f"[url={web_url}][img width=350]{img_url}[/img][/url] ")
desc.write("[/align]")
desc.write(self.signature)
desc.close()
return
Expand Down

0 comments on commit cf3fb14

Please sign in to comment.