Skip to content

Commit

Permalink
Added more logging & changed project versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeTravelPenguin authored and TimeTravelPenguin committed Jan 5, 2024
1 parent 2a3d076 commit 2278d05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "BAET"
version = "0.1.2"
version = "0.0.0.post86.dev0"
description = ""
authors = ["TimeTravelPenguin <TimeTravelPenguin@gmail.com>"]
readme = "README.md"
Expand Down Expand Up @@ -55,6 +55,7 @@ testpaths = ["tests"]

[tool.poetry-dynamic-versioning]
enable = true
metadata = false
vcs = "git"

[build-system]
Expand Down
6 changes: 4 additions & 2 deletions src/BAET/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def _create_output_filepath(self, file: Path, stream_index: int) -> Path:
return out_path / filename

def build_job(self, file: Path) -> FFmpegJob:
logger.info(f"Building job for {file}")

audio_streams: list[AudioStream] = []
indexed_outputs: MutableMapping[int, Stream] = {}

Expand Down Expand Up @@ -127,6 +129,7 @@ def __iter__(self) -> Generator[FFmpegJob, Any, None]:

class MultiTrackAudioBulkExtractor:
def __init__(self, app_args: AppArgs) -> None:
logger.info("Starting MultiTrackAudioBulkExtractor")
self._extractor_jobs = MultitrackAudioBulkExtractorJobs(
app_args.input_dir,
app_args.output_dir,
Expand All @@ -135,7 +138,6 @@ def __init__(self, app_args: AppArgs) -> None:
)

self.display = Table.grid()
self._logger = logger

def __rich_console__(self, console: Console, options: ConsoleOptions) -> RenderResult:
yield self.display
Expand All @@ -145,5 +147,5 @@ def run_synchronously(self) -> None:
self.display.add_row(Padding(Group(*job_progresses), pad=(1, 2)))

for progress in job_progresses:
self._logger.info(f"Processing input file '{progress.job.input_file}'")
logger.info(f"Processing job '{progress.job.input_file}'")
progress.start()

0 comments on commit 2278d05

Please sign in to comment.