Support drag and drop links for channels

This commit is contained in:
Brahim Hadriche committed 2023-10-24 19:59:24 -04:00
1 parent 549913ef7d
commit 6051d45a80
4 files changed
+73 -18

No files matched your search

+10
View File
@@ -51,6 +51,16 @@ export class InvidiousApi {
return await response.json();
}
public async getChannelMetadata(ucid: string) {
const response = await fetch(`${this.instance}/api/v1/channels/${ucid}`);
return await response.json();
}
public async resolveUrl(url: string) {
const response = await fetch(`${this.instance}/api/v1/resolveurl?url=${encodeURIComponent(url)}`);
return await response.json();
}
public async markFeedSourcePagination(feedSource: any) {
const endpoint = this.endpoints[feedSource.endpoint]
if (!endpoint || !endpoint.paginationType) {