mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(wrapper): pass through query params for resource requests
This commit is contained in:
@@ -518,7 +518,8 @@ export class Wrapper {
|
||||
extras?: string
|
||||
): string {
|
||||
const extrasPath = extras ? `/${extras}` : '';
|
||||
return `${this.baseUrl}/${resource}/${type}/${encodeURIComponent(id)}${extrasPath}.json`;
|
||||
const queryParams = new URL(this.manifestUrl).search;
|
||||
return `${this.baseUrl}/${resource}/${type}/${encodeURIComponent(id)}${extrasPath}.json${queryParams ? `?${queryParams.slice(1)}` : ''}`;
|
||||
}
|
||||
|
||||
private getAddonName(addon: Addon): string {
|
||||
|
||||
Reference in New Issue
Block a user