Skip to content

Commit

Permalink
Merge pull request #18 from titanmen1/main
Browse files Browse the repository at this point in the history
Fix publishing post
subzeroid authored Apr 1, 2024
2 parents 54e1a96 + 17944c7 commit bf26b2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiograpi/mixins/photo.py
Original file line number Diff line number Diff line change
@@ -228,7 +228,7 @@ async def photo_upload(
for attempt in range(10):
self.logger.debug(f"Attempt #{attempt} to configure Photo: {path}")
await asyncio.sleep(3)
if self.photo_configure(
if await self.photo_configure(
upload_id,
width,
height,
@@ -238,7 +238,7 @@ async def photo_upload(
extra_data=extra_data,
):
media = self.last_json.get("media")
self.expose()
await self.expose()
return extract_media_v1(media)
raise PhotoConfigureError(response=self.last_response, **self.last_json)

@@ -292,7 +292,7 @@ async def photo_configure(
"scene_capture_type": "standard",
"software": config.SOFTWARE.format(**self.device_settings),
"multi_sharing": "1",
"location": self.location_build(location),
"location": await self.location_build(location),
"media_folder": "Camera",
"source_type": "4",
"caption": caption,

0 comments on commit bf26b2c

Please sign in to comment.