qobuz_importer.user.js: Fix release country error on import.

The GB is valid instead of UK when importing.
Set the default to world wide. Does qobuz have any
georestrictions on downloadable sales even.
This commit is contained in:
Jaakko Perttilä 2018-11-15 04:17:00 +02:00
parent 338f9dea52
commit 42e0e68d94

View file

@ -43,10 +43,9 @@ function parseRelease(data) {
// Release information global to all Beatport releases
release.packaging = 'None';
release.barcode = data.upc;
release.country = "";
release.country = "XW";
if (i18n_global && i18n_global.zone) {
if (i18n_global.zone == 'GB') release.country = 'UK';
else release.country = i18n_global.zone;
release.country = i18n_global.zone;
}
release.status = 'official';
release.urls = [];