Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Fix metadata folder
  • Loading branch information
Dawn-India committed Aug 27, 2024
1 parent bdbbb94 commit f77735f
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions bot/helper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,22 +1723,16 @@ async def substitute(self, dl_path):
return dl_path

async def proceedMetadata(self, up_path, gid):
(
is_video,
_,
_
) = await get_document_type(up_path)
if is_video:
async with task_dict_lock:
task_dict[self.mid] = MetaStatus(
self,
gid
)
LOGGER.info(f"Editing Metadata: {self.metaData} into {up_path}")
await edit_video_metadata(
async with task_dict_lock:
task_dict[self.mid] = MetaStatus(
self,
up_path
gid
)
LOGGER.info(f"Editing Metadata: {self.metaData} into {up_path}")
await edit_video_metadata(
self,
up_path
)
return up_path

async def proceedAttachment(self, up_path, gid):
Expand Down

0 comments on commit f77735f

Please sign in to comment.