mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 21:59:58 -05:00
Creating Video.validated which is used by find_corrupt_videos.py to search.
This commit is contained in:
parent
d0d315cd67
commit
e8e5b5727f
17 changed files with 253 additions and 125 deletions
|
|
@ -551,12 +551,14 @@ export const useHotspot = () => {
|
|||
export const useDownloads = () => {
|
||||
const [onceDownloads, setOnceDownloads] = useState(null);
|
||||
const [recurringDownloads, setRecurringDownloads] = useState(null);
|
||||
const [pendingOnceDownloads, setPendingOnceDownloads] = useState(null);
|
||||
|
||||
const fetchDownloads = async () => {
|
||||
try {
|
||||
const data = await getDownloads();
|
||||
setOnceDownloads(data['once_downloads']);
|
||||
setRecurringDownloads(data['recurring_downloads']);
|
||||
setPendingOnceDownloads(data['pending_once_downloads']);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
|
@ -564,7 +566,7 @@ export const useDownloads = () => {
|
|||
|
||||
useRecurringTimeout(fetchDownloads, 3 * 1000);
|
||||
|
||||
return {onceDownloads, recurringDownloads, fetchDownloads}
|
||||
return {onceDownloads, recurringDownloads, pendingOnceDownloads, fetchDownloads}
|
||||
}
|
||||
|
||||
export const useThrottle = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue