We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e165e55 + 2eaa0b3 commit df45aeaCopy full SHA for df45aea
videodb/collection.py
@@ -103,8 +103,8 @@ def upload(
103
)
104
media_id = upload_data.get("id", "")
105
if media_id.startswith("m-"):
106
- return Video(self, **upload_data)
+ return Video(self._connection, **upload_data)
107
elif media_id.startswith("a-"):
108
- return Audio(self, **upload_data)
+ return Audio(self._connection, **upload_data)
109
elif media_id.startswith("img-"):
110
- return Image(self, **upload_data)
+ return Image(self._connection, **upload_data)
0 commit comments