Skip to content

Commit

Permalink
Auto-format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 1, 2025
1 parent 5802a21 commit 54db9ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bot/helper/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
)
from bot.core.aeon_client import TgClient
from bot.core.config_manager import Config
from bot.helper.aeon_utils.metadata_editor import get_streams, get_metadata_cmd
from bot.helper.aeon_utils.metadata_editor import get_metadata_cmd

from .ext_utils.bot_utils import get_size_bytes, new_task, sync_to_async
from .ext_utils.bulk_links import extract_bulk_links
Expand Down Expand Up @@ -1330,6 +1330,7 @@ async def proceed_metadata(self, dl_path, gid):
async with task_dict_lock:
task_dict[self.mid] = FFmpegStatus(self, gid, "Metadata")
checked = False

async def _process_directory(directory, key):
for dirpath, _, files in await sync_to_async(
walk,
Expand All @@ -1353,6 +1354,7 @@ async def _process_directory(directory, key):
self.subproc = None
os.replace(temp_file, file_path)
return None

if self.is_file:
if is_mkv(dl_path):
cmd, temp_file = await get_metadata_cmd(dl_path, key)
Expand All @@ -1368,4 +1370,4 @@ async def _process_directory(directory, key):

if checked:
cpu_eater_lock.release()
return dl_path
return dl_path
1 change: 1 addition & 0 deletions bot/helper/ext_utils/media_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ async def create_sample_video(listener, video_file, sample_duration, part_durati
await remove(output_file)
return False


async def run_ffmpeg_cmd(listener, cmd, path=None, is_ffmpeg=False):
if is_ffmpeg and path:
base_name, ext = ospath.splitext(path)
Expand Down

0 comments on commit 54db9ec

Please sign in to comment.