From 3fd841f76a550621f62f928b9c05fb09e5ae1cd8 Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Wed, 6 Apr 2022 10:36:18 -0500 Subject: [PATCH] added general case for handling additional media file types --- polyphemus/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/polyphemus/base.py b/polyphemus/base.py index aced8ab..4625236 100644 --- a/polyphemus/base.py +++ b/polyphemus/base.py @@ -6,7 +6,6 @@ #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# import json -from dataclasses import dataclass from urllib.parse import unquote from polyphemus import api @@ -94,9 +93,9 @@ class OdyseeVideo: 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()}') + video_type = 'other' + duration = None if 'signing_channel' in full_video_info: channel_name = full_video_info['signing_channel'].get('name')