eichblatt/deadstream

Tracks out of order for Zero 1994-03-26

eichblatt opened this issue · 2 comments

This tape shows the tracks out of order.
https://archive.org/details/zero1994-03-26.akg-crown.cate.miller.106130.flac16

The other tape for the same date doesn't. However, the default is the one above, presumably because of the "miller" in the tape id.

The issue is that the files are out of order in the metadata (json file).
I haven't run into this problem for any GD tapes, but it's a problem here.
It looks like what I need to do is to use the "track" number from the "original" item in the metadata associated with the track.

eg. here's the data for the FLAC original https://archive.org/details/zero1994-03-26.akg-crown.cate.miller.106130.flac16

{"name": "zero1994-03-26d2t05.flac", "source": "original", "format": "Flac", "title": "Rigor Mortis", "creator": "Zero", "track": "12", "md5": "0ce350dce2fcd7e1e85d687023949edf", "mtime": "1266638536", "size": "90313779", "crc32": "85254bd7", "sha1": "4504d68126ff1447c6155ce9578bf3a413e9afc2", "length": "870.37", "height": "0", "width": "0", "external-identifier": "urn:acoustid:d9d62a9f-09a7-425d-ac8a-335fbbabf7dd"},
{"name": "zero1994-03-26d3t02.flac", "source": "original", "format": "Flac", "title": "Gregg's Eggs", "creator": "Zero", "album": "1994-03-26 - GAMH", "track": "16", "md5": "f31f41f350cbc756dc0b320ed1c60524", "mtime": "1266639703", "size": "105242468", "crc32": "77f508db", "sha1": "0ae66ee1bffe9266437a4590edc1c29dc70ccbe3", "length": "962", "height": "0", "width": "0", "external-identifier": "urn:acoustid:84e1daa2-74bb-43a3-9bff-a3ad084240b7"},
{"name": "zero1994-03-26d2t03.flac", "source": "original", "format": "Flac", "title": "Chance In A Million ->", "creator": "Zero", "album": "1994-03-26 - GAMH", "track": "10", "md5": "7fa628fa3b6be6430f33f2467f10be3b", "mtime": "1266637957", "size": "74550236", "crc32": "b1a040be", "sha1": "cfc5442a77a04e26abdb33eff7fc201a11e23aaf", "length": "689.4", "height": "0", "width": "0", "external-identifier": "urn:acoustid:b46d59c2-c493-48bd-8034-6e33fadb9eda"},
{"name": "zero1994-03-26d1t03.flac", "source": "original", "format": "Flac", "title": "Catalina", "creator": "Zero", "album": "1994-03-26 - GAMH", "track": "03", "md5": "c3ebd46630c3fe2bfc9f767f85e12844", "mtime": "1266636452", "size": "81144720", "crc32": "e77f9212", "sha1": "05c3b94154dbf9e7931f109a889155455e931935", "length": "780.08", "height": "0", "width": "0", "external-identifier": "urn:acoustid:4cced834-855e-45eb-92f7-6a271db85ed9"},
{"name": "zero1994-03-26d2t02.flac", "source": "original", "format": "Flac", "title": "End Of The World Blues", "creator": "Zero", "album": "1994-03-26 - GAMH", "track": "09", "md5": "de6df3e7c4e40890bc91b4353037d984", "mtime": "1266637671", "size": "82848268", "crc32": "4877c389", "sha1": "09d1f62889fa2150831942f657d1086de80e52bb", "length": "797.52", "height": "0", "width": "0", "external-identifier": "urn:acoustid:5a9981ea-db45-4ee3-90eb-af5c0ba4501d"},

Every one of them has the "track", but they're not in order.
Note that this isn't even the order that I am presenting them. I am showing them in the order that the Ogg Vorbis files appear in the metadata:

{"name": "zero1994-03-26d2t01.ogg", "source": "derivative", "format": "Ogg Vorbis", "original": "zero1994-03-26d2t01.flac", "mtime": "1429211498", "size": "2551862", "md5": "9eb868f34044fc83ff9c0667b468c272", "crc32": "24bea3fd", "sha1": "2f4de0f81c76f4d47fc1e58c2ae76954ec4a848a", "length": "223.01", "height": "0", "width": "0", "title": "Tuning"},
{"name": "zero1994-03-26d1t05.ogg", "source": "derivative", "format": "Ogg Vorbis", "original": "zero1994-03-26d1t05.flac", "mtime": "1429211357", "size": "7122867", "md5": "f5b583abdfc6e13387a4383be29b5eef", "crc32": "d1e6a79e", "sha1": "96123f72736e9b816c15b41d41a51a4722334dde", "length": "581.25", "height": "0", "width": "0", "title": "It's Up To You"},
{"name": "zero1994-03-26d2t05.afpk", "source": "derivative", "format": "Columbia Peaks", "original": "zero1994-03-26d2t05.flac", "mtime": "1429212773", "size": "163400", "md5": "204f6d54c055a130d5c157b63d9e4aea", "crc32": "61ded5a9", "sha1": "1fea896bc9d0e67742eabc9e9b62f42a26e9a44e"},

However, the ogg vorbis files don't have track numbers.

Even with this fix, there is a problem with LittleFeat, 8/17/2012.

A piece of code to get to the issue is to put a breakpoint in reorder_tracks function and call this

In [1]: import sys
   ...: import time
   ...: from threading import Event
   ...: 
   ...: from timemachine import Archivary
   ...: from timemachine import config
   ...: from timemachine import GD
   ...: 
   ...: track_event = Event()
   ...: 
   ...: config.optd = {'COLLECTIONS': ['LittleFeat'],'FAVORED_TAPER': 'miller', 'PLAY_LOSSLESS': 'false'}
   ...: aa = Archivary.Archivary(collection_list=config.optd['COLLECTIONS'])