From 65d62345ceb23b227f28724f7e9feac0d111d199 Mon Sep 17 00:00:00 2001 From: michele0303 Date: Fri, 19 Jul 2024 01:52:48 +0200 Subject: [PATCH] Some fix --- src/enums.py | 2 +- src/tiktokbot.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/enums.py b/src/enums.py index 71cb28f..5ebcf38 100644 --- a/src/enums.py +++ b/src/enums.py @@ -73,7 +73,7 @@ class Info(Enum): def __str__(self): return str(self.value) - VERSION = 5.0 + VERSION = 5.1 BANNER = f""" _____ _ _ _____ _ _ _ ___ _ diff --git a/src/tiktokbot.py b/src/tiktokbot.py index 29fbabe..9144df1 100644 --- a/src/tiktokbot.py +++ b/src/tiktokbot.py @@ -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)