code refactoring / fix typos

This commit is contained in:
2024-08-20 09:42:04 +02:00
parent 01e9da61eb
commit 92e3fd994e
4 changed files with 52 additions and 55 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.tsx linguist-detectable=false

View File

@@ -84,7 +84,7 @@ const LivestreamDialog: React.FC<Props> = ({ open, onClose }) => {
<Grid item xs={12} mb={2}>
<Alert severity="info">
This will monitor yet to start livestream. Each process will be executed with --wait-for-video 10.<br />
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.
</Alert>
<Alert severity="warning" sx={{ mt: 1 }}>
This feature is still experimental. Something might break!

View File

@@ -66,8 +66,9 @@ const LiveStreamMonitorView: React.FC = () => {
return (
<>
<LivestreamSpeedDial onOpen={() => setOpenDialog(s => !s)} onStopAll={stopAll} />
{
!progress || Object.keys(progress).length === 0 ?
<LivestreamDialog open={openDialog} onClose={() => setOpenDialog(s => !s)} />
{!progress || Object.keys(progress).length === 0 ?
<NoLivestreams /> :
<Container maxWidth="xl" sx={{ mt: 4, mb: 8 }}>
<Paper sx={{
@@ -114,12 +115,7 @@ const LiveStreamMonitorView: React.FC = () => {
</Table>
</TableContainer>
</Paper>
</Container>
}
<LivestreamDialog
open={openDialog}
onClose={() => setOpenDialog(s => !s)}
/>
</Container>}
</>
)
}

View File

@@ -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)
}