Commit graph

177 commits

Author SHA1 Message Date
Laurent Monin
f50052e0f3 Remove medium title if there is only one medium
https://github.com/murdos/musicbrainz-userscripts/issues/69
2015-07-02 09:52:24 +02:00
Laurent Monin
79d91635eb Bump discogs importer version 2015-06-27 14:19:07 +02:00
Laurent Monin
3492ec595e Discogs: "Single Sided" != "Single"
Fix Discogs import does not properly understand "Single Sided"
https://github.com/murdos/musicbrainz-userscripts/issues/66
2015-06-27 09:32:19 +02:00
Laurent Monin
347ec031cd Bump discogs importer version 2015-06-23 10:23:27 +02:00
Laurent Monin
9e0e8a8725 discogs: map gatefold or digisleeve to Gatefold Cover on MB 2015-06-23 10:20:24 +02:00
Laurent Monin
4790f70a0d discogs: since we want only one packaging, skip other matches using else if 2015-06-23 10:19:54 +02:00
Laurent Monin
8171491d14 discogs: minor simplification, use one replace() instead of 2 2015-06-23 10:19:16 +02:00
Laurent Monin
c183cc2c67 discogs: drop useless intermediate variable 2015-06-23 09:49:48 +02:00
Laurent Monin
0842b1e3a2 discogs: remove useless else 2015-06-23 09:43:20 +02:00
Laurent Monin
2124537406 discogs: rewrite release date parsing 2015-06-23 09:40:39 +02:00
Laurent Monin
7fd6f5aa00 discogs: minor indentation fix 2015-06-23 08:36:45 +02:00
Laurent Monin
92626ce158 discogs: introduce artistNoNum() function and reduce code redundancy 2015-06-23 08:35:20 +02:00
Laurent Monin
1f55960600 discogs: simplify code 2015-06-23 08:23:50 +02:00
Laurent Monin
419f623ef9 discogs: use an intermediate variable to simplify code 2015-06-23 02:11:09 +02:00
Laurent Monin
bb83f406d6 discogs: make vinyl release number calculation even simpler
Use basic binary to get rid of uppercase/lowercase issue.
2015-06-23 02:10:22 +02:00
Laurent Monin
3bb072da97 discogs: use case-insensitive regexps 2015-06-23 02:10:18 +02:00
Aurélien Mino
97a3e4a345 discogs: simplify computing of medium number from vinyl side. 2015-06-22 23:31:30 +02:00
Aurélien Mino
331089cd6e discogs: remove intermediate variable trackNumber, in order to make code
less confusing.
2015-06-22 23:27:48 +02:00
Aurélien Mino
8e67c4ee4f discogs: Fixed detection of medium number for vinyl with one track per
side (A, B, C, ...). For such trackPosition, medium number was never
updated.
www.discogs.com/release/4071616 can now be imported correctly.
2015-06-22 23:24:49 +02:00
Aurélien Mino
9aa9582974 discogs: improve detected of medium formats.
Previous code was considering that for "6xVinyl, LP" only the last medium
was a 12" Vinyl.
2015-06-22 22:35:37 +02:00
Laurent Monin
4be17ed24e Bump versions 2015-06-21 17:26:58 +02:00
Laurent Monin
603450ec4f Better handling of Various Artists and other special artists
Let each script set the correct artist, instead of doing automagically in mbimport.
2015-06-21 17:25:44 +02:00
Laurent Monin
6e8b40af7f discogs: fix incorrect artist credit join phrases
https://github.com/murdos/musicbrainz-userscripts/issues/64
2015-06-21 15:45:21 +02:00
Aurélien Mino
cb86f69c34 discogs: bump version 2015-06-18 23:06:16 +02:00
Aurélien Mino
66bf3349c7 discogs: update name of the function inserting the MB section.
It now better reflects what the function does.
2015-06-18 23:05:18 +02:00
Aurélien Mino
2bfb8bfa33 discogs: update code comments. 2015-06-18 23:02:01 +02:00
Aurélien Mino
704cfec565 discogs: also display link for the Discogs entity of the current page.
Previously this feature was only available for releases.
2015-06-18 23:00:31 +02:00
Aurélien Mino
0bf2671eaf Bump versions 2015-06-18 00:32:37 +02:00
Aurélien Mino
a4b23129d0 Refactoring: renamed import_functions lib to mbimport. 2015-06-18 00:29:08 +02:00
Aurélien Mino
116410ad45 discogs: code style improvements 2015-06-18 00:18:22 +02:00
Aurélien Mino
9b8a8ef5c4 discogs: ignore medium formats that are not mapped to MB formats.
This should prevent trying to map e.g. "Box-set".
2015-06-17 23:50:22 +02:00
Laurent Monin
44a5a1282a discogs: fix up buttons on chrome 2015-06-17 14:44:06 +02:00
Laurent Monin
5dea6f5cab Bump versions
- updated edit note
2015-06-17 11:53:36 +02:00
Laurent Monin
49eef81c43 Advertise the userscripts homepage in the edit note. 2015-06-17 11:51:51 +02:00
Laurent Monin
979c4fce13 discogs: bump version 2015-06-17 10:59:07 +02:00
Laurent Monin
30be1ef964 discogs: try various places to insert buttons, sometimes section social isn't available
http://www.discogs.com/Joy-Orbison-Boddika-Trickys-Team/release/5609148

Fix the second link issue reported at:
https://github.com/murdos/musicbrainz-userscripts/issues/13#issuecomment-74458495
2015-06-17 10:50:52 +02:00
Laurent Monin
0cf959ba61 discogs: bump version 2015-06-17 09:50:25 +02:00
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
1c71b7c79a discogs: add a warning near Import button when tracklist is perhaps buggy
Example of such release: http://www.discogs.com/Undertone-Sexy-Thing/release/1009184

See discussion at 1bf80fbaf9 (commitcomment-11717691)
2015-06-17 09:43:57 +02:00
Laurent Monin
86a4c286f6 discogs: bump version 2015-06-17 00:37:17 +02:00
Laurent Monin
1bf80fbaf9 discogs: make the script tougher against weird track numbering
http://www.discogs.com/release/73531 was leading to an error:
when it tries to parse track 3 position (AA1) it thinks it's a new disc and increase
releaseNumber.
Of course there is no matching release format, so it generates an exception..

http://www.discogs.com/Undertone-Sexy-Thing/release/1009184 also leads to the same exception, somehow for a similar reason (track numbering has the usual scheme),
but the real fix is on the discogs side for this one, tracks 7.1-7.6 should be track 7 with sub-tracks.
Just make the script tougher here again, it just tries to import tracks as they are.
2015-06-17 00:37:17 +02:00
Laurent Monin
8eaef73605 discogs: catch parseDiscogsRelease() exceptions and insert an error message 2015-06-16 23:24:24 +02:00
Laurent Monin
6a57231062 Bump versions 2015-06-16 16:19:53 +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
4719a5d7d7 mblinks: swap version and expiration parameters 2015-06-16 16:16:59 +02:00
Laurent Monin
bfe25c7da5 mblinks: make expiration optional
Use a common default value of 90 days.
2015-06-16 16:16:59 +02:00
Laurent Monin
5a4058eb6b discogs_importer: display search links for not-yet-found entities 2015-06-15 23:09:26 +02:00
Laurent Monin
5b43dd6938 Bump modified scripts versions 2015-06-15 09:54:21 +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
67f1325327 Bump versions
libs changed a bit.
2015-06-14 15:02:07 +02:00