yt-dlp downloads
This commit is contained in:
@@ -68,6 +68,9 @@ export const useFiles = (root: string = 'home') => {
|
||||
|
||||
gitClone: (url: string, path: string) => client.post(withRoot('/file-browser/git-clone'), { url, path }),
|
||||
|
||||
downloadVideo: (url: string, path: string, audioOnly: boolean) =>
|
||||
client.post(withRoot('/file-browser/download-video'), { url, path, audioOnly }),
|
||||
|
||||
download: async (paths: string[]) => {
|
||||
if (paths.length === 1) {
|
||||
const blob = await client.getBlob(withRoot(`/file-browser/download?path=${encodeURIComponent(paths[0]!)}`));
|
||||
|
||||
Reference in New Issue
Block a user