Skip to content

Commit

Permalink
Handle edge case description PTP
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Sep 7, 2024
1 parent 6b16cdc commit 34c8145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bbcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def clean_ptp_description(self, desc, is_disc):
desc = re.sub(r"\[img=[\s\S]*?\]", "", desc, flags=re.IGNORECASE)

# Extract loose images and add to imagelist as dictionaries
loose_images = re.findall(r"(https?:\/\/.*\.(?:png|jpg))", nocomp, flags=re.IGNORECASE)
loose_images = re.findall(r"(https?:\/\/[^\s\[\]]+\.(?:png|jpg))", nocomp, flags=re.IGNORECASE)
if loose_images:
for img_url in loose_images:
image_dict = {
Expand Down

0 comments on commit 34c8145

Please sign in to comment.