Commit graph

34 commits

Author SHA1 Message Date
Laurent Monin
f7552d244a Merge pull request #56 from zas/discogs_search_entities
Discogs importer: display links for direct search of entities on MB
2015-06-17 09:47:09 +02:00
Laurent Monin
9ee0a2ee48 Add Search button to all importers and improve integration on each website 2015-06-16 16:17:00 +02:00
Laurent Monin
4d96e7bffa luceneEscape: also escape slash 2015-06-16 16:17:00 +02:00
Laurent Monin
1a07a75774 import_functions: add searchUrlFor() which returns an url for search of given entity 2015-06-15 23:09:22 +02:00
Laurent Monin
4bd4b74c7f import_functions: set artist mbid for Various Artists and [unknown] 2015-06-15 17:23:24 +02:00
Laurent Monin
565c776910 import_functions: add a function to parse ISO8601 durations 2015-06-15 13:59:09 +02:00
Laurent Monin
5a2d439d55 Unify the style of the MB import button among websites
- display musicbrainz icon in it
- unify css style
- add a new lib/mbimportstyle.js (store functions inserting css)
2015-06-15 09:52:59 +02:00
Laurent Monin
42bb4890ca hmsToMilliSeconds(): fix an issue with Bandcamp "hidden" tracks
str may be null, so check.
2015-06-15 09:50:40 +02:00
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
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
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