From c08e4f0efd02f1d259bfa507e5ab8293111369b8 Mon Sep 17 00:00:00 2001 From: SophiaFrancis1 <112432333+SophiaFrancis1@users.noreply.github.com> Date: Fri, 4 Nov 2022 13:49:54 -0500 Subject: [PATCH] Update Updated BWF support funcs. Updated Inventory Reference CSV --- .../audio_processor/audio_processor_supportfuncs.py | 2 +- .../audio_processor/data/inventory_reference.csv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AV/Audio/audio_processor/audio_processor/audio_processor_supportfuncs.py b/AV/Audio/audio_processor/audio_processor/audio_processor_supportfuncs.py index 8d273af..b4bc939 100644 --- a/AV/Audio/audio_processor/audio_processor/audio_processor_supportfuncs.py +++ b/AV/Audio/audio_processor/audio_processor/audio_processor_supportfuncs.py @@ -313,7 +313,7 @@ def get_bwf_metadata(pm_file_abspath): #core_bwf_command = [args.metaedit_path, '--out-core', pm_file_abspath] tech_bwf_command = [args.metaedit_path, '--out-tech', pm_file_abspath] #TODO fix - splitlines returns different results here depending on OS - tech_bwf_csv = subprocess.check_output(tech_bwf_command).decode("ascii").rstrip().splitlines()[2] + tech_bwf_csv = subprocess.check_output(tech_bwf_command).decode("ascii").rstrip().splitlines()[-1] embedded_md5 = {'MD5Stored' : tech_bwf_csv.split(',')[16]} ffprobe_tags.update(embedded_md5) #core_bwf_csv = subprocess.check_output(core_bwf_command).decode("ascii").rstrip() diff --git a/AV/Audio/audio_processor/audio_processor/data/inventory_reference.csv b/AV/Audio/audio_processor/audio_processor/data/inventory_reference.csv index 350723a..cbdf0a4 100644 --- a/AV/Audio/audio_processor/audio_processor/data/inventory_reference.csv +++ b/AV/Audio/audio_processor/audio_processor/data/inventory_reference.csv @@ -1,2 +1,2 @@ work_accession_number,filename,label,inventory_title,Record Date/Time,Housing/Container Markings,Condition Notes,Barcode,"Box/Folder -Alma number",Format,Running time (mins),Tape Brand,Speed IPS,Tape Thickness,Base (acetate/polyester),Track Configuration,Sound,Length/Reel Size,Tape Type (Cassette),Noise Reduction,Capture Date,Digitizer,Digitizer Notes,Shot Sheet Check,Date,File Format & Metadata Verification,Date,File Inspection,Date,QC Notes,Notes for the Metadata Record +Alma number",Format,Running time (mins),Tape Brand,Speed IPS,Tape Thickness,Base (acetate/polyester),Track Configuration,Sound,Length/Reel Size,Tape Type (Cassette),Noise Reduction,Capture Date,Digitizer,Digitizer Notes,Shot Sheet Check,Date,File Format & Metadata Verification,Date,File Inspection,Date,QC Notes \ No newline at end of file