Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9117

CD Stub track count not serialized correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2016-12-19
    • None
    • Web service
    • None

      Happens for both XML and JSON; in JSON, "track-count: null" is emitted, and in XML, there is no "track-count" attribute on the <track-list>.

      The problem seems to be that both the CDStubTOC and CDStub have a track_count property; the one from CDStub is serialized, but it's the one from CDStubTOC that contains the actual track count.

      Because I don't know whether or not the track_count from CDStub is ever really used, I'll just add a fallback to the other one.

            zastai Tim Van Holder
            zastai Tim Van Holder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2016-12-19