Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name MusicBrainz: Import from iTunes
// @description Import releases from iTunes
// @version 2014-02-22
// @author -
// @namespace http://userscripts.org/users/41307
//
// @include *://itunes.apple.com/*
//
// ==/UserScript==
// ==UserScript==
// @name Import Discogs releases to MusicBrainz
// @version 2014.09.27.0
// @namespace http://userscripts.org/users/22504
// @icon http://www.discogs.com/images/discogs130.png
// @downloadURL https://raw.github.com/murdos/musicbrainz-userscripts/master/discogs_importer.user.js
// @updateURL https://raw.github.com/murdos/musicbrainz-userscripts/master/discogs_importer.user.js
// @include http://www.discogs.com/*
// @include http://*.discogs.com/*release/*
SELECT If(MONTH(CachedProducts.date_release) = "00", 13, MONTH(CachedProducts.date_release)) month_release, If(Day(CachedProducts.date_release) = "00", 32, DAY(CachedProducts.date_release)) day_release, GROUP_CONCAT(Parameters.tag) AS tags, `ParametersIndices`.`id`, `CachedProducts`.`id`, `CachedProducts`.`id_big`, `CachedProducts`.`type_id`, `CachedProducts`.`subtype_id`, `CachedProducts`.`category_param_select_id`, `CachedProducts`.`title`, `CachedProducts`.`original_title`, `CachedProducts`.`slug`, `CachedProducts`.`year_of_production`, `CachedProducts`.`date_release`, `CachedProducts`.`rating`, `CachedProducts`.`rating_count`, `CachedProducts`.`rating_average`, `CachedProducts`.`collection_count`, `CachedProducts`.`recommend_count`, `CachedProducts`.`current_count`, `CachedProducts`.`done_count`, `CachedProducts`.`wish_list_count`, `CachedProducts`.`shopping_list_count`, `CachedProducts`.`review_count`, `CachedProducts`.`list_count`, `CachedProducts`.`json`, `CachedProducts`.`venue_count`, `CachedProducts
38823
112753
44113
62414
32720
219920
2247
28625
59119
9119