Laurent Monin
0f8ad4e971
import_functions: add a class to the search link, tidy up code a bit.
2015-06-14 14:13:56 +02:00
Laurent Monin
d76525949e
import_functions: add a class to the form element
2015-06-14 14:13:00 +02:00
Laurent Monin
c3899a73b4
import_functions: use a button type=submit instead of an input
...
It is easier to style, same behavior.
2015-06-14 14:11:39 +02:00
Laurent Monin
8c29ca5c3f
import_functions: makeArtistCredits() now splits featuring or versus artists
2015-06-13 15:18:04 +02:00
Laurent Monin
6d44668600
importers: move release type guessing to fnBuildFormParameters()
...
- use milliseconds for track durations everywhere for consistency
- use total duration in guessing only if all tracks have a duration
- improve a bit the differenciation single/EP/album
- it only happens if no release type was set by user script
2015-06-13 04:25:31 +02:00
Laurent Monin
529561b389
import_functions: use same protocol than the page we are on for the form
...
It prevents the warning on beatport pro (https)
2015-06-13 04:19:48 +02:00
Laurent Monin
a6c983b785
import_functions: add other_databases url type
2015-06-13 00:55:28 +02:00
Laurent Monin
ac4e33f43d
import_functions: add discogs url type
2015-06-13 00:15:20 +02:00
Laurent Monin
6991a5ad6f
import_functions: add purchase_for_mail_order url type
2015-06-13 00:08:58 +02:00
Laurent Monin
be4e3ef1a6
import_functions: add guessReleaseType() helper
...
- it tries to guess the release type based on title, number of tracks, and total duration
- it will be used to provide a sensible default value for type in importers
- it will fail to guess sometimes of course, but editor has to check values set by importer
2015-06-12 22:40:40 +02:00
Laurent Monin
ad1f0e3e51
import_functions: add makeArtistCredits() function to build artist credits
2015-06-12 22:01:06 +02:00
Laurent Monin
7c3a39c79d
import_functions: add URL_TYPES property
2015-06-12 21:28:24 +02:00
Laurent Monin
345414e11c
mblinks: add support for a version from caller script
...
Useful to force cache reconstruction when format of keys change.
2015-06-12 16:20:56 +02:00
Laurent Monin
d982717a25
mblinks: add support for a user-specified cache key, defaulting to url
...
It will be needed for discogs places/labels support
2015-06-12 11:18:08 +02:00
Laurent Monin
08046d1b09
mblinks: display icon for places
2015-06-11 15:30:39 +02:00
Laurent Monin
255e933379
mblinks: take care of removal of old cache versions
2015-06-11 14:25:58 +02:00
Laurent Monin
0b49e16cae
mblinks: when loading the cache, clear expired entries
2015-06-11 14:00:12 +02:00
Laurent Monin
c9a26fd00f
mblinks: fix minor typo
2015-06-11 13:58:20 +02:00
Laurent Monin
ecf7681073
mblinks: store current time in timestamp, version the cache
...
Previously, the timestamp stored was in fact the expiration time (calculation was made at insertion),
but it makes more sense to just set timestamp to the currrent time.
This requires a cache format changes, hence the appended version.
2015-06-11 13:57:24 +02:00
Laurent Monin
0da85a03dc
Ensure parseInt() base to be 10
...
Octal as default was dropped since ECMAScript 5, but better safe than sorry.
Also it ensures parsing '0xa' returns 0, and not 10 (hexa->dec)
2015-06-11 00:21:39 +02:00
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