Skip to content

Commit 82ac2af

Browse files
author
Anas Yaseen
committed
(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
1 parent 71a483b commit 82ac2af

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pyinstalive/download.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ def get_following_livestreams(self):
7070
if livestream_list.get("broadcasts", None):
7171
for livestream in livestream_list.get("broadcasts", None):
7272
owner_username = livestream.get("broadcast_owner", None).get("username", None)
73-
try:
74-
guest_username = livestream.get("cobroadcasters", None)[0].get("username", None)
75-
except:
76-
guest_username = None
77-
if guest_username:
78-
usernames_available_livestreams.append(guest_username)
79-
else:
73+
if owner_username:
8074
usernames_available_livestreams.append(owner_username)
8175
if usernames_available_livestreams:
8276
logger.info("The following users have available livestreams:")

0 commit comments

Comments
 (0)