Skip to content

Commit

Permalink
Merge pull request #49 from Greenylie/main
Browse files Browse the repository at this point in the history
Fixed an issue that caused longer game names to be unselectable (Fixes #43, Fixes #47)
  • Loading branch information
Loukious authored Nov 10, 2024
2 parents 69199f9 + 7766812 commit af3365c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def __init__(self, token):
def search(self, game):
if not game:
return []
game = game[:25] # If the game name exceeds 25 characters, the API will return error 500
url = f"https://streamlabs.com/api/v5/slobs/tiktok/info?category={game}"
info = self.s.get(url).json()
info["categories"].append({"full_name": "Other", "game_mask_id": ""})
Expand Down

0 comments on commit af3365c

Please sign in to comment.