Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# Changes

## Fixes

- Fix issues with ffmpeg in the Linux bundle if querying the version or using the previewer.

## Features

- Webserver settings are now saved and the webserver may be automatically started on app launch. It also got an improved API that makes it easy for external apps to interact with the Syncer (like [this mod for Melody Mania](https://steamcommunity.com/sharedfiles/filedetails/?id=3181930801)).
Expand Down
7 changes: 6 additions & 1 deletion src/usdb_syncer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def get_media_duration(path: Path) -> float:
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
check=True,
env=subprocessing.get_env_clean(),
)
return float(result.stdout)

Expand All @@ -401,7 +402,11 @@ def get_ffmpeg_version() -> str | None:
return None

result = subprocess.run(
["ffmpeg", "-version"], capture_output=True, text=True, check=False
["ffmpeg", "-version"],
capture_output=True,
text=True,
check=False,
env=subprocessing.get_env_clean(),
)

output = result.stdout or result.stderr
Expand Down