This project is read-only.
1
Vote

import errors for sub_tracks

description

It looks like Discogs added a new tag "<sub_tracks>" as a child of tracks in their release XML. As a result, loading results throws exceptions. Building upon leapfrog's patch to ignore companies, here is a batch that can be added to readTrack at line 331. This is not a fix, but rather a workaround to load the file and ignore sub_track listings.
            //patched by jason - jason@ziolo.com
            else if (this.XmlReader.IsElementStart("sub_tracks"))
            {

                // skip until end of node                    
                if (!this.XmlReader.IsEmptyElement)
                {
                    while (true)
                    {
                        this.XmlReader.AssertRead();

                        if (this.XmlReader.IsElementEnd("sub_tracks"))
                        {
                            break;
                        }
                    }
                }
            }

comments