Laurent Monin
b7a52ff58c
discogs_importer: make /master/view/ pages act like /master/
2015-06-14 14:08:55 +02:00
Laurent Monin
6e2e20eb7a
Bump versions
2015-06-13 04:29:28 +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
18805276c5
Bump versions
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
f5255fb22e
discogs_importer: update version
2015-06-12 16:34:29 +02:00
Laurent Monin
c5ad8604bf
discogs_importer: also match artist simple alias
2015-06-12 16:20:57 +02:00
Laurent Monin
c1c1f1682e
discogs_importer: simplify code using getDiscogsLinkKey()
...
Parse current page url once, and propagate the resulting key.
2015-06-12 16:20:57 +02:00
Laurent Monin
d9a58d0820
discogs_importer: get clean url from the release json data instead of window.location
2015-06-12 16:20:57 +02:00
Laurent Monin
01bba52c05
discogs_importer: include artist link ending with ?noanv=1 (main artist name)
2015-06-12 16:20:57 +02:00
Laurent Monin
8172a6a5f2
discogs_importer: use add_mblinks()
...
As a major change, magnifyLinks() is only called on elements selected instead on the whole page.
Types are now passed as an array, which prevents repeated expansion of selectors
2015-06-12 16:20:56 +02:00
Laurent Monin
6ac8a4f740
discogs_importer: add_mblinks() function
2015-06-12 16:20:56 +02:00
Laurent Monin
52a6b17908
getCacheKeyFromUrl(): remove useless console.log()
2015-06-12 16:20:56 +02:00
Laurent Monin
152db36755
magnifyLinks(): drop force parameter, and use a counter for processed nodes
...
Using a counter helps for debugging.
2015-06-12 16:20:56 +02:00
Laurent Monin
a9695a21ca
discogs_importer: improve debug_color() output
2015-06-12 16:20:56 +02:00
Laurent Monin
bce2b544d5
discogs_importer: disable pjax navigation
...
At least until someone can get get pjax events to work with GM
2015-06-12 16:20:56 +02:00
Laurent Monin
ed894db18e
discogs_importer: update cache version, since we are using keys now
2015-06-12 16:20:56 +02:00
Laurent Monin
48093bda90
searchAndDisplayMbLinkInSection(): use cache key and improve support for places
...
Test case: http://www.discogs.com/Thomas-Fersen-Triplex/release/1307146 (companies)
2015-06-12 16:20:56 +02:00
Laurent Monin
ed92c733ef
Use a cache key instead of url for discogs release page
2015-06-12 16:20:56 +02:00
Laurent Monin
42086bf1af
MBIDfromUrl(): make it use a cache key instead of url
2015-06-12 16:20:56 +02:00
Laurent Monin
dab6f5ccc1
discogs_importer: introduce two functions building a cache key including mb type
2015-06-12 16:20:56 +02:00
Laurent Monin
dd9e2895cd
searchAndDisplayMbLinkInSection(): make mb_type optionnal
...
If not given, defaults to the type usually matching the discogs type.
At the moment, only 'master' maps to a different mb type (release-group).
2015-06-12 16:20:56 +02:00
Laurent Monin
203438fd9d
Update versions
2015-06-11 15:59:23 +02:00
Laurent Monin
f653ebe164
discogs_importer: discogsRelease.master_url may not be defined
2015-06-11 15:57:15 +02:00
Laurent Monin
fd78099113
discogs_importer: display places for links in companies section
...
Preliminary support.
2015-06-11 15:34:16 +02:00
Laurent Monin
2725bdf76d
discogs_importer: improve mblink_done attribute
...
It was a boolean, it is now a list of all MB types tried.
2015-06-11 15:33:11 +02:00
Laurent Monin
7ab2e249e4
discogs_importer: add more mb links
...
Improve selectors, and add a fancy debug mode coloring zones, and adding a debug_discogs attribute
for matching elements.
2015-06-11 11:57:52 +02:00
Laurent Monin
3be144bf25
discogs_importer: instead of replacing hrefs, add an attribute mlink
...
Modifying hrefs may cause various issues with the host website, using our own key will ease
searchs.
2015-06-11 11:22:23 +02:00
Laurent Monin
be0d245a2f
Update version
2015-06-11 00:24:15 +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
b2cf577bd3
Update version
2015-06-10 23:56:27 +02:00
Laurent Monin
328964ff39
Update versions
2015-06-10 15:02:24 +02:00
Laurent Monin
641ef5c837
Add missing script descriptions
2015-06-10 15:00:03 +02:00
Aurélien Mino
439201356f
[discogs] No MB links should be added for Marketplace links.
2015-06-08 07:16:20 +02:00
Laurent Monin
3047bce8d7
Update versions due to recent changes
2015-06-08 01:57:42 +02:00
Laurent Monin
8df35d0330
Fix a typo causing the logger to fail: None != none
...
@grant None is incorrect, the correct "@grant none" is the default since greasemonkey 2.0
so just drop those lines.
2015-06-07 23:34:18 +02:00
Aurélien Mino
f89b8f0a85
Update discogs importer version
2015-06-07 21:51:05 +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
a193e5079f
[discogs] Display more MusicBrainz links:
...
- track artists
- labels
- "All Versions of this Release" link
2015-06-07 20:00:05 +02:00
Laurent Monin
0ed808ff11
Bump discogs and bandcamp versions
2015-06-06 13:44:05 +02:00
Laurent Monin
4bc4e9e3c8
Use latest jquery version
...
Old version is getting ... old.
2015-06-06 13:12:47 +02:00
Laurent Monin
138943667f
Fix mb links display when navigating through pages
...
Pages are pjax-loaded, an event was listening for changes but due to discogsLinksMagnified attribute set in magnifyLinks(), the step was ignored (we want the links to be magnified again).
So, ignoring this attribute on triggered event is working.
I'm not sure this is the best fix for that yet.
2015-06-06 13:12:07 +02:00
Laurent Monin
e66f4c45df
Fix an old issue causing the mb link to be added more than once.
...
Mark links as processed using an attribute.
Note: there is another old issue related to discogs page navigation, links don't always show up
2015-06-06 10:42:28 +02:00
Laurent Monin
636c9e0ca9
Display link to MB artist on master and release pages
2015-06-05 23:28:45 +02:00
Laurent Monin
3b3ea553f6
Normalize discogs artist urls
2015-06-05 23:28:09 +02:00
Laurent Monin
beef49f3e1
Drop unused variable
2015-06-05 23:26:13 +02:00
Laurent Monin
6d778043fc
Discogs importer: use mblinks lib
...
Behavior changed slightly:
- cached entries are now refreshed after a week (tune-able)
- icons are now specific to types (release, release-group)
2015-06-05 22:17:24 +02:00
Laurent Monin
5dcd552f13
Use relative paths in @require for libs
2015-06-05 20:49:23 +02:00
Laurent Monin
adf6c4fdca
Calculate total duration of sub-tracks if needed
...
Tested with: http://www.discogs.com/release/1156598
Suggested by https://github.com/murdos/musicbrainz-userscripts/pull/45#issuecomment-108753443
2015-06-04 10:08:03 +02:00