From 2eaa0b3cfb22a488d79fdda350a4fff4fa9ad2a4 Mon Sep 17 00:00:00 2001 From: Ankit raj <113342181+ankit-v2-3@users.noreply.github.com> Date: Thu, 22 Feb 2024 15:47:35 +0530 Subject: [PATCH] fix: connection --- videodb/collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/videodb/collection.py b/videodb/collection.py index b9a69fb..489a56b 100644 --- a/videodb/collection.py +++ b/videodb/collection.py @@ -103,8 +103,8 @@ def upload( ) media_id = upload_data.get("id", "") if media_id.startswith("m-"): - return Video(self, **upload_data) + return Video(self._connection, **upload_data) elif media_id.startswith("a-"): - return Audio(self, **upload_data) + return Audio(self._connection, **upload_data) elif media_id.startswith("img-"): - return Image(self, **upload_data) + return Image(self._connection, **upload_data)