From 92f398a3260b8b91edc930adbf5586b4efd06070 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 27 Oct 2020 00:44:40 +1000 Subject: [PATCH] turns out i didn't need to do anything to add alac support - they work the same as aac m4a files do. although i did find and fix a bug in the m4a handling so that's good at least 0uo --- .idea/workspace.xml | 50 +++++++++++++++++++++------------------------ bcao.py | 2 +- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 04aa77e..4195006 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -20,20 +20,7 @@ - - - - - - - - - - - - - - + @@ -202,7 +196,8 @@ - @@ -221,10 +216,10 @@ - + - + @@ -250,25 +245,25 @@ - + - + - + - + - + - + - + - + @@ -311,5 +306,6 @@ + \ No newline at end of file diff --git a/bcao.py b/bcao.py index 44bac6c..bc775c5 100755 --- a/bcao.py +++ b/bcao.py @@ -110,7 +110,7 @@ class SongInfo: continue value_list = self.m_tags[tag] - if self.format == "m4a" and tag == "track": + if self.format == "m4a" and standard_name == "track": # every tag in the MP4 file (from what i can tell) is a list # this includes the track number tag, which is a tuple of ints in a list. # because every other format is either a non-list, or a list of non-lists, we need to account for this case