Commit graph

239 commits

Author SHA1 Message Date
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
Laurent Monin
66cdfbb40f tools/generated_README: use h2 instead of h3 (## vs ###) 2015-06-10 14:32:06 +02:00
Laurent Monin
0a74fd9c6c tools/generate_README: use simpler heading syntax 2015-06-10 14:30:52 +02:00
Laurent Monin
4d262ba824 tools/generate_README: fix missing '>' 2015-06-10 14:30:06 +02:00
Laurent Monin
b68a3d3435 tools/generate_README: Order scripts by name 2015-06-10 13:51:24 +02:00
Laurent Monin
976871ad6d CD1D: update version 2015-06-10 13:27:37 +02:00
Laurent Monin
90296369f5 CD1D: Remove useless log line 2015-06-10 13:27:01 +02:00
Laurent Monin
2b1ef0016d CD1D: fix parsing release date in french too
"aujourd'hui" and "hier" are used for very recent releases, parsing was working only for english "today" & "yesterday"
2015-06-10 13:25:16 +02:00
Aurélien Mino
2b54c81745 Merge handlers in ajax request context, to prevent duplicated requests
to MB webservice.
2015-06-09 00:16:41 +02:00
Aurélien Mino
cd8d7c6d98 Changed ajax requests queue implementation from a simple array to a
linked map.
The goal is to used the map feature to prevent making duplicated
requests.
2015-06-08 22:44:39 +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
d3280dbbe0 Add an helper script to maintain versions in user scripts 2015-06-08 01:55:53 +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
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
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
0442f76f55 Update bandcamp importer version 2015-06-07 01:46:50 +02:00
Laurent Monin
92aa8cca37 Clarify single/track/album and related code
- track, /track/ on bandcamp, belongs to an album, not importable
- single, /track/ on bandcamp, standalone, importable
- album, /album/ on bandcamp, importable
2015-06-07 01:46:03 +02:00
Laurent Monin
ff19d2f96f parent_album -> parent_album_url 2015-06-07 01:26:56 +02:00
Laurent Monin
670074e07b Fix up album/artist links on track pages 2015-06-07 01:22:49 +02:00
Laurent Monin
67204007b8 Retrieve release info before anything else. 2015-06-07 01:20:23 +02:00
Laurent Monin
f431b89623 Store url instead of title in release.parent_album
Title is unused in itself, but the whole purpose is to differentiate single tracks vs single tracks belonging to an album.
2015-06-07 01:18:27 +02:00
Laurent Monin
e29787ecc0 Use url provided by Bandcamp in albumData instead of window.location
Provided url is cleaner.
2015-06-07 00:30:25 +02:00
Laurent Monin
166cfd57a9 Fix single import not showing regression
Bug introduced by me in 34584e7b77
2015-06-07 00:22:03 +02:00
Laurent Monin
0ed808ff11 Bump discogs and bandcamp versions 2015-06-06 13:44:05 +02:00
Laurent Monin
c152b18db5 Merge pull request #48 from zas/discogs_mblinks
Discogs importer: use mblinks
2015-06-06 13:42:26 +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