diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..24d73ba --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tsx linguist-detectable=false \ No newline at end of file diff --git a/frontend/src/components/livestream/LivestreamDialog.tsx b/frontend/src/components/livestream/LivestreamDialog.tsx index 66517a3..60b2c47 100644 --- a/frontend/src/components/livestream/LivestreamDialog.tsx +++ b/frontend/src/components/livestream/LivestreamDialog.tsx @@ -84,7 +84,7 @@ const LivestreamDialog: React.FC = ({ open, onClose }) => { This will monitor yet to start livestream. Each process will be executed with --wait-for-video 10.
- If an already started livestream is provided it will be still downloaded but progress will not be tracked. + If an already started livestream is provided it will be still downloaded but its progress will not be tracked.
This feature is still experimental. Something might break! diff --git a/frontend/src/views/Livestream.tsx b/frontend/src/views/Livestream.tsx index c071a83..2e678e7 100644 --- a/frontend/src/views/Livestream.tsx +++ b/frontend/src/views/Livestream.tsx @@ -66,60 +66,56 @@ const LiveStreamMonitorView: React.FC = () => { return ( <> setOpenDialog(s => !s)} onStopAll={stopAll} /> - { - !progress || Object.keys(progress).length === 0 ? - : - - - - - - - Livestream URL - Status - Time to live - Starts on - Actions + setOpenDialog(s => !s)} /> + + {!progress || Object.keys(progress).length === 0 ? + : + + + +
+ + + Livestream URL + Status + Time to live + Starts on + Actions + + + + {progress && Object.keys(progress).map(k => ( + + {k} + + {mapStatusToChip(progress[k].Status)} + + + {formatMicro(Number(progress[k].WaitTime))} + + + {new Date(progress[k].LiveDate).toLocaleString()} + + + + - - - {progress && Object.keys(progress).map(k => ( - - {k} - - {mapStatusToChip(progress[k].Status)} - - - {formatMicro(Number(progress[k].WaitTime))} - - - {new Date(progress[k].LiveDate).toLocaleString()} - - - - - - ))} - -
-
-
-
- } - setOpenDialog(s => !s)} - /> + ))} + + + + + } ) } diff --git a/server/internal/livestream/livestream.go b/server/internal/livestream/livestream.go index f9e94a8..9cbce4c 100644 --- a/server/internal/livestream/livestream.go +++ b/server/internal/livestream/livestream.go @@ -133,7 +133,7 @@ func (l *LiveStream) monitorStartTime(r io.Reader) error { l.liveDate = parsed - //TODO: check if useing channels is stupid or not + //TODO: check if using channels is stupid or not // l.waitTimeChan <- time.Until(start) l.waitTime = time.Until(parsed) }