Skip to content

Commit

Permalink
Update ISRC validation to 2024-06-07
Browse files Browse the repository at this point in the history
* New Agency Code for ISRC in the United States
* New Agency Code for use by Registration Authority
  Note that registration authority allocation policies have changed, and
  CP is now in use (no longer reserved).
  • Loading branch information
kepstin committed Sep 22, 2024
1 parent 9c31a18 commit 9ef2b93
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,16 @@
console.log(pregapISRCs, isrcs);
}

var ccodesUpdated = '2021-05-25'; /* https://isrc.ifpi.org/downloads/ISRC_Bulletin-2015-01.pdf Updated May 25 2021 */
/* https://isrc.ifpi.org/downloads/ISRC_Bulletin-2015-01.pdf Updated July 20 2022 */
/* https://isrc.ifpi.org/downloads/Valid_Characters.pdf June 2024 */
var ccodesUpdated = '2024-06-07';
var ccodes = [
'AL', 'DZ', 'AD', 'AO', 'AI', 'AG', 'AR', 'AM', 'AW', 'AU', 'AT', 'AZ',
'BS', 'BH', 'BD', 'BB', 'BY', 'BE', 'BZ', 'BM', 'BO', 'BA', 'BR', 'BP',
'BX', 'BC', 'BG', 'BF',
'BX', 'BC', 'BK', 'BG', 'BF',
'CM', 'CA', 'CB', 'KY', 'CL', 'CN', 'TW', 'CO', 'CD', 'CI', 'HR', 'CU', 'CW',
'CY', 'CZ',
'DK', 'DM', 'DO',
'DK', 'GL', 'FO', 'DM', 'DO',
'EC', 'EG', 'SV', 'EE', 'ET',
'FJ', 'FI', 'FR', 'FX', 'PF',
'GM', 'GE', 'DE', 'GH', 'GI', 'GR', 'GD', 'GT', 'GG', 'GY',
Expand All @@ -331,14 +333,12 @@
'RO', 'RU',
'KN', 'LC', 'VC', 'SM', 'SA', 'SN', 'RS', 'SC', 'SL', 'SG', 'SX', 'SK',
'SI', 'SB', 'ZA', 'ZB', 'ES', 'LK', 'SZ', 'SE', 'CH',
'TZ', 'TH', 'TO', 'TT', 'TN', 'TR',
'UG', 'UA', 'AE', 'GB', 'UK', 'GX', 'US', 'QM', 'QZ', 'UY', 'UZ',
'TZ', 'TH', 'TO', 'TT', 'TN', 'TR', 'DG',
'UG', 'UA', 'AE', 'GB', 'UK', 'GX', 'US', 'QM', 'QT', 'QZ', 'UY', 'UZ',
'VU', 'VE', 'VN', 'VG',
'ZM', 'ZW',
'TC', /* TuneCore */
'CP', /* Reserved for future use */
'DG', /* International use, includes Turks and Caicos Islands */
'ZZ', /* International use, individual allocations */
'CP', 'DG', 'QN', 'ZZ', /* Worldwide IIRA direct allocations */
'CS', 'YU' /* Historical */
];

Expand Down Expand Up @@ -370,9 +370,6 @@
if (ccodes.indexOf(country) === -1) {
checks.push({type: "danger", message: `${country} is not allocated by the IFPI (last updated ${ccodesUpdated})`});
}
if (country == 'CP') {
checks.push({type: "danger", message: "CP is reserved for future use by IFPI (last updated ${ccodesUpdated})"});
}
if (registrant == '000') {
checks.push({type: "warning", message: `Registrant code “${registrant}” may indicate blank or dummy data`});
}
Expand Down

0 comments on commit 9ef2b93

Please sign in to comment.