Skip to content

Commit

Permalink
Merge branch 'pr/194'
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Dec 13, 2024
2 parents ab44e33 + 85f1a64 commit 7034650
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 7034650

Please sign in to comment.