Commit graph

312 commits

Author SHA1 Message Date
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
67f1325327 Bump versions
libs changed a bit.
2015-06-14 15:02:07 +02:00
Laurent Monin
65fcc5a579 beatport_importer: remove unused external libs 2015-06-14 14:59:55 +02:00
Laurent Monin
9d07b80dc4 Use relative paths for libs 2015-06-14 14:55:19 +02:00
Laurent Monin
857cdf7c30 discogs_importer: in debug mode, display a border around the import div 2015-06-14 14:25:10 +02:00
Laurent Monin
b26c5407de discogs_importer: improve display of links to this page
- only display if there is actually a link
- make text smaller
- change text to '... linked to this page'
- vertical align icons
2015-06-14 14:21:18 +02:00
Laurent Monin
2b1bb7f7e1 discogs_importer: make the musicbrainz import block appears smoothly 2015-06-14 14:17:49 +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
b7a52ff58c discogs_importer: make /master/view/ pages act like /master/ 2015-06-14 14:08:55 +02:00
Laurent Monin
5e178fd6a0 juno_download_importer: bump version 2015-06-13 15:34:22 +02:00
Laurent Monin
7e0c7efdbc juno_download_importer: fix up comment
Thanks to CatQuest for spotting it ;)
2015-06-13 15:19:30 +02:00
Laurent Monin
8c29ca5c3f import_functions: makeArtistCredits() now splits featuring or versus artists 2015-06-13 15:18:04 +02:00
Laurent Monin
162a402b27 Update README 2015-06-13 11:38:55 +02:00
Laurent Monin
470f3322a7 Add Juno Download importer 2015-06-13 11:38:19 +02:00
Laurent Monin
6e2e20eb7a Bump versions 2015-06-13 04:29:28 +02:00
Laurent Monin
3d29fb078b cd1d_importer: use MBReleaseImportHelper.makeArtistCredits() 2015-06-13 04:28:47 +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
e9c648daa1 cd1d_importer: use relative paths for libs 2015-06-13 04:21:18 +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
18805276c5 Bump versions 2015-06-13 00:55:28 +02:00
Laurent Monin
94367bfa31 encyclopedisque_importer: use MBReleaseImportHelper.URL_TYPES 2015-06-13 00:55:28 +02:00
Laurent Monin
74800b0c5e encyclopedisque_importer: use relative paths for libs 2015-06-13 00:55:28 +02:00
Laurent Monin
a6c983b785 import_functions: add other_databases url type 2015-06-13 00:55:28 +02:00
Laurent Monin
a2710a1067 discogs_importer: if no release type was found, try to guess one 2015-06-13 00:55:28 +02:00
Laurent Monin
3bf4752cbc discogs_importer: use MBReleaseImportHelper.URL_TYPES.discogs 2015-06-13 00:23:45 +02:00
Laurent Monin
ac4e33f43d import_functions: add discogs url type 2015-06-13 00:15:20 +02:00
Laurent Monin
0e5b59a81c cd1d_importer: use MBReleaseImportHelper.URL_TYPES 2015-06-13 00:09:58 +02:00
Laurent Monin
6991a5ad6f import_functions: add purchase_for_mail_order url type 2015-06-13 00:08:58 +02:00
Laurent Monin
d20e5367ca cd1d_importer: use MBReleaseImportHelper.guessReleaseType() 2015-06-13 00:07:18 +02:00
Laurent Monin
af2e38d30a cd1d_importer: add more websites, they all share the same interface 2015-06-13 00:06:33 +02:00
Laurent Monin
e0ca73766a bandcamp_importer: use MBReleaseImportHelper.guessReleaseType 2015-06-12 23:54:01 +02:00
Laurent Monin
6283a0c9ed bandcamp_importer: use MBReleaseImportHelper.URL_TYPES 2015-06-12 23:53:35 +02:00
Laurent Monin
9e12ad8e3f beatport_pro_importer: bump version 2015-06-12 23:33:29 +02:00
Laurent Monin
2f66a3f2e3 Merge pull request #52 from zas/beatport_pro_fixes
BeatPort Pro: make it work again
2015-06-12 23:32:28 +02:00
Laurent Monin
3572fe2fc9 beatport_pro_importer: set release artist to 'Various Artists' when > 4
Suggested by CatQuest: http://chatlogs.musicbrainz.org/musicbrainz/2015/2015-06/2015-06-12.html#T21-06-03-216220
2015-06-12 23:21:37 +02:00
Laurent Monin
fe64395c72 beatport_pro_importer: try to guess the release type
- set the release type to single/EP/album based on title, number of tracks and total duration
2015-06-12 22:42:04 +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
65ed707c0f beatport_importer_pro: tidy up release object construction
- regroup properties initialization
- add few default values (language to English, script to Latin)
2015-06-12 22:08:40 +02:00
Laurent Monin
a8f8f8b34e beatport_pro_importer: no need to store id in release object
It is only used to match tracks.
2015-06-12 22:06:00 +02:00
Laurent Monin
3036d458b9 beatport_importer: use makeArtistCredits for both release and tracks 2015-06-12 22:04:01 +02:00
Laurent Monin
ad1f0e3e51 import_functions: add makeArtistCredits() function to build artist credits 2015-06-12 22:01:06 +02:00
Laurent Monin
70e83a1b3b beatport_pro_importer: fix up release url
- set it by default as 'purchase for download'
- remove any hash or query part from the url
2015-06-12 21:37:19 +02:00
Laurent Monin
22b64ea7fa beatport_pro_importer: add @namespace 2015-06-12 21:29:48 +02:00
Laurent Monin
6a7015fd9b beatport_pro_importer: remove obsolete @sourceURL 2015-06-12 21:29:01 +02:00
Laurent Monin
7c3a39c79d import_functions: add URL_TYPES property 2015-06-12 21:28:24 +02:00
Laurent Monin
c8ee328d78 BeatPort Pro: make it work again
Fixed:
- invisible import button
- more tracks than in the release
- release artist credit were the ones of the last track
- remove 'Original Mix' from track titles
- update jquery to recent version
- prevent jquery conflicts
- use relative paths for lib
2015-06-12 19:57:46 +02:00
Laurent Monin
f5255fb22e discogs_importer: update version 2015-06-12 16:34:29 +02:00