Fix edge case where the base url isnt in the badge url for some reason
This commit is contained in:
parent
44d0beaa2e
commit
d820d64ff9
@ -95,6 +95,8 @@ async def rsi_find(player):
|
|||||||
.findNext("span", class_="icon")
|
.findNext("span", class_="icon")
|
||||||
.findNext("img")["src"]
|
.findNext("img")["src"]
|
||||||
)
|
)
|
||||||
|
if base_url not in badge_url:
|
||||||
|
badge_url = base_url + badge_url
|
||||||
|
|
||||||
badge_text = (
|
badge_text = (
|
||||||
soup.find("p", class_="entry")
|
soup.find("p", class_="entry")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user