gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit 1ce51c165c689012a4c6a3813e5ab70c9570e482
parent a833a2cf34147a358d6ffcaec5504ea82da60eb5
Author: rbckman <rob@tarina.org>
Date:   Sun,  5 Jul 2026 19:41:27 +0100

same with audio duh!

Diffstat:
Mgonzopi.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -5054,7 +5054,11 @@ def get_video_length(filepath): def get_audio_length(filepath): # Parse the file - media_info = MediaInfo.parse(filepath) + video_origins = (os.path.realpath(filepath)) + try: + media_info = MediaInfo.parse(filepath) + except: + return # Find the video track (usually the first video track) for track in media_info.tracks: if track.track_type == "Audio":