Commit graph

30 commits

Author SHA1 Message Date
Laurent Monin
7c67333f92 mblinks: use full query as key, code cleanup 2015-06-10 23:54:43 +02:00
Laurent Monin
1172d4ef54 Merge pull request #49 from murdos/mblinks_optim
Mblinks optimization
2015-06-10 18:21:12 +02:00
Laurent Monin
b0d221facd mblinks: fix resolveMBID(), no mblinks in this context 2015-06-10 18:20:30 +02:00
Aurélien Mino
2b54c81745 Merge handlers in ajax request context, to prevent duplicated requests
to MB webservice.
2015-06-09 00:16:41 +02:00
Aurélien Mino
cd8d7c6d98 Changed ajax requests queue implementation from a simple array to a
linked map.
The goal is to used the map feature to prevent making duplicated
requests.
2015-06-08 22:44:39 +02:00
Aurélien Mino
74ea93381e [discogs] Use mblinks cache to seed MBIDs for artists, labels,
release-group.
2015-06-07 21:49:51 +02:00
Aurélien Mino
3f00813732 Fix seeding of artist credit MBID and add support for seeding
release-group MBID.
2015-06-07 21:48:00 +02:00
Laurent Monin
f19d8a0b0a mblinks: add a way to override link title or image for one or more types 2015-06-05 21:57:03 +02:00
Laurent Monin
b6a7eced65 mblinks: fix up release-group image source links
Issue caused by a mix up of 'release-group' and 'release_group' which remains
unseen with the bandcamp importer since it doesn't use any type with '-'.
2015-06-05 21:50:52 +02:00
Laurent Monin
3a8fef22bb searchAndDisplayMbLink(): save to cache once, after the loop 2015-06-05 17:32:11 +02:00
Laurent Monin
b7a7b0c617 searchAndDisplayMbLink(): remove check for valid type
At worse, the code will fail if an incorrect type is provided by the dev.
2015-06-05 17:26:53 +02:00
Laurent Monin
5f08654b16 Simplify initCache() 2015-06-05 17:15:04 +02:00
Laurent Monin
14179dda3f Move hardcoded musicbrainz url to a MBLinks property 2015-06-05 17:01:19 +02:00
Laurent Monin
3e16227cd9 Do '-' to '_' replacement in type once, outside the each loop 2015-06-05 16:56:37 +02:00
Laurent Monin
41c5f675cf Encode URI passed as parameter in MB ws request url 2015-06-05 16:53:15 +02:00
Laurent Monin
b306925b98 Move MBLinks js class to lib/mblinks.js, and use relative paths for @require 2015-06-05 11:13:42 +02:00
Aurélien Mino
59e0f8b244 Enhanced logging system factored in a new lib: logger.js. 2015-01-18 14:00:58 +01:00
Aurélien Mino
7716463be2 [import_functions] Improve header documentation 2015-01-18 13:34:10 +01:00
Laurent Monin
f7954eae68 Fix "Unknown field: as_auto_editor" error when importing
Since last MB server update (http://blog.musicbrainz.org/2014/11/03/server-update-2014-11-03/), i get this error when importing:

The data you’ve seeded contained the following errors:

    Unknown field: as_auto_editor

This field was removed, replaced by 'make_votable' which is always unchecked by default.
So basically those lines aren't needed anymore.
2014-11-04 21:53:46 +01:00
nikki
53543993c2 mediums.i.position has been removed since it was originally never supported, so don't try seeding it 2014-08-15 02:40:24 +02:00
nikki
94cbef72d5 Map Discogs "Album", "EP" and "Mini-Album" and support secondary types separately from primary type 2014-08-15 01:55:30 +02:00
Frederik "Freso" S. Olesen
a36d3df27d Add support for URLs in the release editor. 2014-02-21 20:04:38 +01:00
Frederik "Freso" S. Olesen
1a3a2414dc Line up indentations properly.
`sed -E 's/^((    )*) {1,3}([^ ])/\1\3/'`
(Thanks to @warpr and @JonnyJD for help with cracking that one!)
2014-02-21 19:43:59 +01:00
Frederik "Freso" S. Olesen
9f346bc8e4 Replace tabs with spaces.
`sed 's/\t/    /g'`
2014-02-21 19:43:51 +01:00
Frederik "Freso" S. Olesen
25fcd18750 Remove trailing whitespace.
`sed 's/[[:space:]]*$//'`
2014-02-21 19:43:36 +01:00
Aurélien Mino
b6c1b69aec Added support for free-form track number. 2012-06-09 01:55:12 +02:00
Aurélien Mino
b0d75b6ffd Forced auto_editor privileges, as a workaround to http://tickets.musicbrainz.org/browse/MBS-4315 2012-04-22 12:22:57 +03:00
Aurélien Mino
10c3d1de5c 2011-09-11 2012-03-29 00:21:06 +02:00
Aurélien Mino
84d7921dc4 2011-08-28 2012-03-29 00:20:52 +02:00
Aurélien Mino
a586084994 2011-08-20 2012-03-29 00:16:10 +02:00