mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 05:09:58 -05:00
Fixing bug where refreshing a video would download a copy, instead of just the metadata.
This commit is contained in:
parent
1109dd3933
commit
ebcb7b0e5d
2 changed files with 8 additions and 7 deletions
|
|
@ -271,8 +271,12 @@ export async function deleteVideos(videoIds) {
|
|||
}
|
||||
}
|
||||
|
||||
export async function downloadVideoMetadata(videoUrl, destination) {
|
||||
const downloadData = {urls: [videoUrl], downloader: Downloaders.Video, destination: destination};
|
||||
export async function downloadVideoMetadata(videoUrl) {
|
||||
const downloadData = {
|
||||
urls: [videoUrl],
|
||||
downloader: Downloaders.Video,
|
||||
settings: {download_metadata_only: true},
|
||||
};
|
||||
return await postDownload(downloadData);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue