Updated unprint for interface and user agent control. Using request interface in Nubiles, fixed relative album path.

This commit is contained in:
DebaucheryLibrarian
2026-01-08 01:04:34 +01:00
parent 5ce3d79e49
commit b67824969f
5 changed files with 45 additions and 21 deletions

View File

@@ -65,11 +65,11 @@ async function fetchLatest(channel, page = 1, { parameters }) {
const provider = new URL(channel.url).searchParams.get('providers');
const res = await unprint.get(`${parameters.api}/videos?filter[provider]=${provider}&limit=24&sources=${parameters.source}&page=${page}`, {
interface: 'request',
headers: {
// currently only required for Bellesa Plus
Referer: `${new URL(channel.url).origin}/videos`,
Cookie: 'bellesa_agegate=true',
'User-Agent': null,
},
});