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
Laurent Monin
f69a3b23b8
Merge pull request #51 from zas/cache_key_places
...
discogs_importer: use a cache key instead of url to handle labels vs places
2015-06-12 16:33:22 +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
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
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
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
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
ad47d8e56b
Trailing whitespaces cleanup
2015-06-11 00:22:38 +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
7c67333f92
mblinks: use full query as key, code cleanup
2015-06-10 23:54:43 +02:00
Aurélien Mino
d9dbcf8dc8
[ui_enhancements] Various uncommitted fixes.
2015-06-10 22:46:17 +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
Laurent Monin
f3bd7eab11
Regenerate README
2015-06-10 15:02:51 +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
Laurent Monin
429df69112
Unify Import scripts names
2015-06-10 14:59:12 +02:00