mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 03:42:27 +00:00
import_functions: add URL_TYPES property
This commit is contained in:
parent
c8ee328d78
commit
7c3a39c79d
1 changed files with 12 additions and 4 deletions
|
@ -61,6 +61,13 @@ var MBReleaseImportHelper = (function() {
|
|||
|
||||
// --------------------------------------- publics ----------------------------------------- //
|
||||
|
||||
var url_types = {
|
||||
purchase_for_download: 74,
|
||||
download_for_free: 75,
|
||||
stream_for_free: 85,
|
||||
license: 301
|
||||
}
|
||||
|
||||
// compute HTML of search link
|
||||
function fnBuildSearchLink(release) {
|
||||
|
||||
|
@ -203,8 +210,9 @@ var MBReleaseImportHelper = (function() {
|
|||
// ---------------------------------- expose publics here ------------------------------------ //
|
||||
|
||||
return {
|
||||
buildSearchLink: fnBuildSearchLink,
|
||||
buildFormHTML: fnBuildFormHTML,
|
||||
buildFormParameters: fnBuildFormParameters
|
||||
};
|
||||
buildSearchLink: fnBuildSearchLink,
|
||||
buildFormHTML: fnBuildFormHTML,
|
||||
buildFormParameters: fnBuildFormParameters,
|
||||
URL_TYPES: url_types
|
||||
};
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue