mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 20:02:27 +00:00
MBIDfromUrl(): make it use a cache key instead of url
This commit is contained in:
parent
dab6f5ccc1
commit
42086bf1af
1 changed files with 4 additions and 2 deletions
|
@ -326,8 +326,10 @@ function getCacheKeyFromUrl(url, discogs_type, mb_type) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function MBIDfromUrl(url, discogs_type) {
|
||||
return mblinks.resolveMBID(getCleanUrl(url, discogs_type));
|
||||
function MBIDfromUrl(url, discogs_type, mb_type) {
|
||||
var cachekey = getCacheKeyFromUrl(url, discogs_type, mb_type);
|
||||
if (!cachekey) return '';
|
||||
return mblinks.resolveMBID(cachekey);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue