Skip to content

Commit

Permalink
(bug): Fixed issue where followed people's streams with guests are no…
Browse files Browse the repository at this point in the history
…t downloadable because we try to download the stream of the guest instead of downloading the stream of the actual owner
  • Loading branch information
Anas Yaseen committed Dec 28, 2023
1 parent 71a483b commit 82ac2af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pyinstalive/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down

0 comments on commit 82ac2af

Please sign in to comment.