'use strict'; const conf = require('>/conf'); const { fetchWithRetry } = require('./retry'); // Ask Emby to (re)scan its libraries so a newly filed item gets indexed. async function refresh(){ let res = await fetchWithRetry(`${conf.emby.url}/Library/Refresh?api_key=${conf.emby.apiKey}`, { method: 'POST', }, { label: 'emby refresh' }); return true; } module.exports = { refresh };