diff --git a/src/contentcreatormanager/platform/lbry.py b/src/contentcreatormanager/platform/lbry.py index 2fdfb7d..089b68c 100644 --- a/src/contentcreatormanager/platform/lbry.py +++ b/src/contentcreatormanager/platform/lbry.py @@ -148,7 +148,7 @@ def __add_channel_videos(self): page += 1 for i in p: x += 1 - if i['value']['stream_type'] == 'video': + if i['value'].get('stream_type') == 'video': self.logger.info(f"Adding claim with name {i['name']}") claims.append(i) else: @@ -615,4 +615,4 @@ def api_upload_thumb(self, file : str): response = requests.post(LBRY.LBRY_THUMB_API_URL, files=files) - return response.json() \ No newline at end of file + return response.json()