diff --git a/src/trackers/BHD.py b/src/trackers/BHD.py index 1e3d5a8d..f91b014f 100644 --- a/src/trackers/BHD.py +++ b/src/trackers/BHD.py @@ -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