Skip to main content

Wrong months in the 'Released' field in Discogs

Time for me to go back to a very boring error in the Discogs database: release dates. In an earlier post I already wrote about weird data in the Released field (this is the date field) but that is not what I want to talk about now (as I have already done that). This time it is about something a lot simpler: wrong months in Discogs.

Month equals 0

As it turns out there are quite a few releases in the data where the value of the month is no longer correct. Apparently in the past it was custom (or even mandatory) to have releases in full YYYY-MM-DD format, and if the month and date were not know the value 00 was inserted. This is no longer accepted and if you edit a release and the value of the month is 00 then the following error will be displayed:

Error message for wrong month

This happens only for older releases that haven't been updated for years. It can be argued that this is mostly a cosmetic bug as the old dates with month values of 00 will display just fine. But, these errors also confuse some people who then decide to not fix a release, which is basically a lost contribution for Discogs. Therefore I think they need to be fixed at some point.

So I wanted to know: how many of these wrong entries actually exist in Discogs?

I adapted my scripts and processed the latest data dump. As it turns out there are a whopping 42,953 releases where the month is set to 00. They are distributed across the data as follows:

Distribution of releases with month = 00 in the Discogs database

As expected, it is mostly the early releases where this problem occurs, but it also revealed something unexpected: the latest releases with a month value of 00 were from 2017, although no releases with this smell were added in the last 6 months. I checked the last 30 of them and most of them used an older release as a template, but not all of them.

This means that it seems that this rule ("0 is not an accepted month") only started to be a critical error in mid-2017. But that makes me wonder why there was a very sharp drop so early on.

Fixing this error would actually be very simple and could be done automatically by for example the DiscogsUpdateBot.

Month larger than 12

As a bonus I also looked at which entries have an impossible month. When editing a release in Discogs a few date formats are accepted: YYYY-MM-DD, YYYY-MM-00 or YYYY, as shown in the below screenshot:
Input field for release dates in Discogs when adding or editing a release page

This notation is not universal. For example: where I live in Europe the default is DD-MM-YYYY and for reasons that I cannot understand in the US it is MM-DD-YYYY. I am sure the confusion is the other way around as well, but that's their fault (and in case you didn't get it: that is a joke). Suffice it to say: dates are hard.

My question was: how many releases have an impossible month (larger than 12) set? The answer: 417. They are distributed over the data as follows:

Releases with an impossible value for the month of the release date

So what is striking is that here it is mostly newer releases that have this particular error. The most recent release I could find with this error is actually one of the last that is in the data set that I have, which includes all data until (not including) December 1 2017.

Of course, this error is very easy to detect and also prevent. By checking if the value of the month isn't 0, but also if it is not larger than 12 would be enough to prevent this error and inform the user that the value for the month is incorrect, just like when the value for the month is 0.

I'm hoping that a check will be in place soon. Until then I guess we will have to leave comments in the edit history and hope that people will fix it themselves.

Comments

Popular posts from this blog

SID codes (part 1)

One thing that I only learned about after using Discogs is the so called Source Identification Code, or SID. These codes were introduced in 1994 to combat piracy and to find out on which machines a CD was made. It was introduced by Philips and adopted by IFPI, and specifications are publicly available which clearly describe the two available SID codes (mastering SID code and mould SID code). Since quite a few months Discogs has two fields available in the " Barcode and Other Identifiers " (BaOI) section: Mould SID code Mastering SID code A few questions immediately popped up in my mind: how many releases don't have a SID field defined when there should be (for example, the free text field indicates it is a SID field)? how many releases have a SID field with values that should not be in the SID field? how many release have a SID field, but a wrong year (as SID codes were only introduced in 1994) how many vinyl releases have a SID code defined (which is impossi

SPARS codes (part 1)

Let's talk about SPARS codes used on CDs (or CD-like formats). You have most likely seen it used, but maybe don't know its name. The SPARS code is a three letter code indicating if recording, mixing and mastering were analogue or digital. For example they could look like the ones below. There is not a fixed format, so there are other variants as well. Personally I am not paying too much attention to these codes (I simply do not care), but in the classical music world if something was labeled as DDD (so everything digital) companies could ask premium prices. That makes it interesting information to mine and unlock, which is something that Discogs does not allow people to do when searching (yet!) even though it could be a helpful filter. I wanted to see if it can be used as an identifier to tell releases apart (are there similar releases where the only difference is the SPARS code?). SPARS code in Discogs Since a few months SPARS is a separate field in the Discogs

Country statistics (part 2)

One thing I wondered about: for how many releases is the country field changed? I looked at the two most recent data dumps (covering February and March 2019) and see where they differed. In total 5274 releases "moved". The top 20 moves are: unknown -> US: 454 Germany -> Europe: 319 UK & Europe -> Europe: 217 unknown -> UK: 178 UK -> Europe: 149 Netherlands -> Europe: 147 unknown -> Europe: 139 unknown -> Germany: 120 UK -> US: 118 Europe -> Germany: 84 US -> UK: 79 USA & Canada -> US: 76 US -> Canada: 65 unknown -> France: 64 UK -> UK & Europe: 62 UK & Europe -> UK: 51 France -> Europe: 51 Saudi Arabia -> United Arab Emirates: 49 US -> Europe: 46 unknown -> Japan: 45 When you think about it these all make sense (there was a big consolidation in Europe in the 1980s and releases for multiple countries were made in a single pressing plant) but there are also a few weird changes: