mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Add ability to filter my imports by target URL
This commit is contained in:
parent
419b520ca4
commit
d511df2890
6 changed files with 59 additions and 20 deletions
|
@ -56,18 +56,16 @@ export class ImportsCommand extends AbstractCommand {
|
|||
|
||||
getMyVideoImports (options: OverrideCommandOptions & {
|
||||
sort?: string
|
||||
targetUrl?: string
|
||||
} = {}) {
|
||||
const { sort } = options
|
||||
const { sort, targetUrl } = options
|
||||
const path = '/api/v1/users/me/videos/imports'
|
||||
|
||||
const query = {}
|
||||
if (sort) query['sort'] = sort
|
||||
|
||||
return this.getRequestBody<ResultList<VideoImport>>({
|
||||
...options,
|
||||
|
||||
path,
|
||||
query: { sort },
|
||||
query: { sort, targetUrl },
|
||||
implicitToken: true,
|
||||
defaultExpectedStatus: HttpStatusCode.OK_200
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue