From e024f8288de572fa039f671c77d667c2228624c0 Mon Sep 17 00:00:00 2001 From: Anas Yaseen Date: Thu, 28 Dec 2023 11:52:50 +0300 Subject: [PATCH] (bug): Fixed issue where followed people's streams with guests are not downloadable because we try to download the stream of the guest instead of downloading the stream of the actual owner --- pyinstalive/download.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pyinstalive/download.py b/pyinstalive/download.py index f2a9b04..302aa9d 100644 --- a/pyinstalive/download.py +++ b/pyinstalive/download.py @@ -70,13 +70,7 @@ def get_following_livestreams(self): if livestream_list.get("broadcasts", None): for livestream in livestream_list.get("broadcasts", None): owner_username = livestream.get("broadcast_owner", None).get("username", None) - try: - guest_username = livestream.get("cobroadcasters", None)[0].get("username", None) - except: - guest_username = None - if guest_username: - usernames_available_livestreams.append(guest_username) - else: + if owner_username: usernames_available_livestreams.append(owner_username) if usernames_available_livestreams: logger.info("The following users have available livestreams:")