billy-yoyo / RainbowSixSiege-Python-API

Asynchronous python api for rainbow six siege (r6sapi)
MIT License
130 stars 31 forks source link

"get_operator_badge" doesnt return complete url but only "/assets/..." #23

Closed TECHNOFAB11 closed 5 years ago

TECHNOFAB11 commented 5 years ago

What is the complete URL? I only need the Server, then i can add it before every url "get_operator_badge" returns

anakincho commented 5 years ago

"https://game-rainbow6.ubi.com" would be the URL. Here is an example: https://game-rainbow6.ubi.com/assets/images/small-nomad.50642fb12f.png

Hope this helps! @TECHNOFAB11

billy-yoyo commented 5 years ago

The code should be adding this automatically, the related snippet is:

if not badge.startswith("http"):
            badge = "https://game-rainbow6.ubi.com/" + badge

It works this way for me. If it's not then it's a bug, could you show me the exact snippet you're using? Also make sure you're on the latest version!