The exception, being the MDATA_KEY_TRACKNUMBER metadata value (aka tracknumber or TRCK). The following is an example of one of the sample mp3 files and what is written into the database.
For reference, i poked at the airtimemetadata.py module, specifically the AirtimeMetadata object. My file returns legit tags.
In [1]: from airtimemetadata import AirtimeMetadata
In [2]: md = AirtimeMetadata()
In [3]: b = md.get_md_from_file('/tmp/1.mp3')
In [4]: b
Out[4]:
{'MDATA_KEY_BITRATE': 238589,
'MDATA_KEY_COMPOSER': u'Broken Bells',
'MDATA_KEY_CREATOR': u'Broken Bells',
'MDATA_KEY_DURATION': '0:3:45.384489',
'MDATA_KEY_ENCODER': u'myself',
'MDATA_KEY_FTYPE': 'audioclip',
'MDATA_KEY_GENRE': u'Alternative Rock',
'MDATA_KEY_LABEL': u'Columbia',
'MDATA_KEY_MD5': '1bb921b6b97470c840183d084db633e5',
'MDATA_KEY_MIME': 'audio/mp3',
'MDATA_KEY_REPLAYGAIN': '-7.400000',
'MDATA_KEY_SAMPLERATE': 44100,
'MDATA_KEY_SOURCE': u'Broken Bells',
'MDATA_KEY_TITLE': u'The High Road',
'MDATA_KEY_TRACKNUMBER': 1,
'MDATA_KEY_YEAR': u'2010'}
Yet, when it is tossed into postgres, the track_number is missing for this file :s
airtime=> SELECT id, track_title, artist_name, album_title, genre, year, track_number
FROM cc_files
WHERE artist_name = 'Broken Bells'
AND track_title LIKE 'The High Road%';
-[ RECORD 1 ]+-----------------
id | 276
track_title | The High Road
artist_name | Broken Bells
album_title | Broken Bells
genre | Alternative Rock
year | 2010
track_number |
for reference the file in question sits at http://jesseward.com/1.mp3
It looks like you're new here. If you want to get involved, click one of these buttons!