Ticket #2475 (closed Bugs: fixed)

Opened 6 years ago

Last modified 5 years ago

Corrections to archive_recordings script

Reported by: dirk Assigned to: abrown
Priority: minor Milestone: 2.4
Component: Core Version: SVN-HEAD
Keywords: archive_recordings mp3 Cc:
Confirmation: Confirmed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Unless I'm very wrong, the current archive_recordings will not convert files to mp3 format, even though it is supposed to.

I've made the following changes:

line 354 - $longopts = array("help","debug","dry-run","mp3"); + $longopts = array("help","debug","dry-run","mp3","delwav");

This enables the delwav option to remove the original file after conversion.

line 304 - if ((substr($file,-4) == ".WAV")) { + if ((substr($file,-4) == ".wav")) {

The files seem to be created with a lowercase extension, but the script was looking for uppercase.

With those two changes, the script will correctly compress the files.

Change History

11/05/07 08:11:46 changed by dirk

my apologies, the formatting is wrong, try this:

line 354
- $longopts = array("help","debug","dry-run","mp3"); 
+ $longopts = array("help","debug","dry-run","mp3","delwav");

line 304
- if ((substr($file,-4) == ".WAV")) { 
+ if ((substr($file,-4) == ".wav")) {

12/05/07 01:14:52 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.
  • confirmation changed from Unreviewed to Confirmed.
  • component changed from Recordings Module to Core.
  • version changed from 2.3.1 to SVN-HEAD.