mirror of
https://github.com/bellingcat/polyphemus.git
synced 2026-06-08 03:18:32 +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']:
|
elif 'claim_hash' in full_video_info['value']:
|
||||||
video_type = 'repost'
|
video_type = 'repost'
|
||||||
duration = None
|
duration = None
|
||||||
|
|
||||||
full_video_info['value'] = full_video_info['reposted_claim']['value']
|
full_video_info['value'] = full_video_info['reposted_claim']['value']
|
||||||
full_video_info['canonical_url'] = full_video_info['reposted_claim']['canonical_url']
|
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:
|
else:
|
||||||
raise KeyError(f'nether `video`, `audio`, nor `claim_hash` keys are in `full_video_info["value"]`, only {full_video_info["value"].keys()}')
|
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