- broadcast_ids = (data_store.get('UserBroadcastHistory', {}).get('broadcastIds') or
- data_store.get('BroadcastCache', {}).get('broadcastIds', []))
+ broadcasts = self._call_api(
+ 'getUserBroadcastsPublic',
+ {'user_id': user_id, 'session_id': session_id},
+ user_name)['broadcasts']
+
+ broadcast_ids = [
+ broadcast['id'] for broadcast in broadcasts if broadcast.get('id')]
+
+ title = user.get('display_name') or user.get('username') or user_name
+ description = user.get('description')