Skip to content

Commit

Permalink
Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele0303 committed Jul 18, 2024
1 parent 58fcbeb commit 65d6234
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Info(Enum):
def __str__(self):
return str(self.value)

VERSION = 5.0
VERSION = 5.1
BANNER = f"""
_____ _ _ _____ _ _ _ ___ _
Expand Down
3 changes: 0 additions & 3 deletions src/tiktokbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ def get_user_from_room_id(self) -> str:
url = f"https://www.tiktok.com/api/live/detail/?aid=1988&roomID={self.room_id}"
data = self.httpclient.get(url).json()

if "LiveRoomInfo" not in data:
raise AttributeError(Error.USERNAME_ERROR)

unique_id = data.get('LiveRoomInfo', {}).get('ownerInfo', {}).get(
'uniqueId', None)

Expand Down

0 comments on commit 65d6234

Please sign in to comment.