From eda54362af3a1c1f075258c5e1f07ac3e315fc91 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 29 Oct 2023 14:52:43 +0000 Subject: [PATCH] Tidying --- video.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/video.py b/video.py index 0a91e6b67..68f79eb39 100644 --- a/video.py +++ b/video.py @@ -42,18 +42,6 @@ def convert_video_to_note(base_dir: str, nickname: str, domain: str, attributed_to = None if isinstance(post_json_object['attributedTo'], str): attributed_to = get_attributed_to(post_json_object['attributedTo']) - elif isinstance(post_json_object['attributedTo'], list): - for entity in post_json_object['attributedTo']: - if not isinstance(entity, dict): - continue - if not entity.get('type'): - continue - if entity['type'] != 'Person': - continue - if not entity.get('id'): - continue - attributed_to = entity['id'] - break if not attributed_to: return None