|
@ -68,7 +68,7 @@ const contentTypes = { |
|
|
workflowyFormat: function(data, tab) { |
|
|
workflowyFormat: function(data, tab) { |
|
|
return { |
|
|
return { |
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
description: data.year + " " + data.director + "\n" + "!!" + data.cover |
|
|
description: data.year + " " + data.director + "\n" + "&& " + data.cover |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -85,7 +85,24 @@ const contentTypes = { |
|
|
workflowyFormat: function(data, tab) { |
|
|
workflowyFormat: function(data, tab) { |
|
|
return { |
|
|
return { |
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
description: data.year + " " + data.author + "\n" + "!!" + data.cover |
|
|
description: data.author + "\n" + "&& " + data.cover |
|
|
|
|
|
}; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"album": [ |
|
|
|
|
|
{ |
|
|
|
|
|
urlPattern: /^https?:\/\/rateyourmusic.com\/release\//, |
|
|
|
|
|
fields: { |
|
|
|
|
|
title: { selector: '.album_title', attribute: 'innerText' }, |
|
|
|
|
|
author: { selector: 'a.artist', attribute: 'textContent' }, |
|
|
|
|
|
year: { selector: 'a[href^="/charts/top/"]', attribute: 'textContent' }, |
|
|
|
|
|
cover: { selector: 'div[class^="coverart_"] > img', attribute: 'src' }, |
|
|
|
|
|
}, |
|
|
|
|
|
workflowyFormat: function(data, tab) { |
|
|
|
|
|
return { |
|
|
|
|
|
name: '<a href="' + tab.url + '">' + data.title.trim() + '</a>', |
|
|
|
|
|
description: data.author + " " + data.year + "\n" + "&& " + data.cover |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|