mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 12:24:56 +02:00
Added isbn to CustomProviderAdapter
This commit is contained in:
parent
77559d29bb
commit
94d1732b0d
2 changed files with 9 additions and 4 deletions
|
@ -9,11 +9,12 @@ class CustomProviderAdapter {
|
|||
*
|
||||
* @param {string} title
|
||||
* @param {string} author
|
||||
* @param {string} isbn
|
||||
* @param {string} providerSlug
|
||||
* @param {string} mediaType
|
||||
* @returns {Promise<Object[]>}
|
||||
*/
|
||||
async search(title, author, providerSlug, mediaType) {
|
||||
async search(title, author, isbn, providerSlug, mediaType) {
|
||||
const providerId = providerSlug.split('custom-')[1]
|
||||
const provider = await Database.customMetadataProviderModel.findByPk(providerId)
|
||||
|
||||
|
@ -29,6 +30,9 @@ class CustomProviderAdapter {
|
|||
if (author) {
|
||||
queryObj.author = author
|
||||
}
|
||||
if (isbn) {
|
||||
queryObj.isbn = isbn
|
||||
}
|
||||
const queryString = (new URLSearchParams(queryObj)).toString()
|
||||
|
||||
// Setup headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue