mirror of
https://github.com/bellingcat/polyphemus.git
synced 2026-06-07 19:08:33 +03:00
handled case where video is a single image
This commit is contained in:
@@ -89,9 +89,11 @@ class OdyseeVideo:
|
||||
elif 'claim_hash' in full_video_info['value']:
|
||||
video_type = 'repost'
|
||||
duration = None
|
||||
|
||||
full_video_info['value'] = full_video_info['reposted_claim']['value']
|
||||
full_video_info['canonical_url'] = full_video_info['reposted_claim']['canonical_url']
|
||||
elif 'image' in full_video_info['value']:
|
||||
video_type = 'image'
|
||||
duration = None
|
||||
|
||||
else:
|
||||
raise KeyError(f'nether `video`, `audio`, nor `claim_hash` keys are in `full_video_info["value"]`, only {full_video_info["value"].keys()}')
|
||||
|
||||
Reference in New Issue
Block a user