fixed reverted websocket port, record now shows on all shows, not just currently playiny

This commit is contained in:
dekzter 2025-04-06 20:00:07 -04:00
parent b3551fe32f
commit 386876a378
2 changed files with 14 additions and 13 deletions

View file

@ -29,7 +29,7 @@ export const WebsocketProvider = ({ children }) => {
useEffect(() => {
let wsUrl = `${window.location.host}/ws/`;
if (import.meta.env.DEV) {
wsUrl = `${window.location.hostname}:5656/ws/`;
wsUrl = `${window.location.hostname}:8001/ws/`;
}
if (window.location.protocol.match(/https/)) {

View file

@ -463,16 +463,17 @@ export default function TVChannelGuide({ startDate, endDate }) {
{selectedProgram.description || 'No description available.'}
</Text>
{/* Only show the Watch button if currently live */}
{now.isAfter(dayjs(selectedProgram.start_time)) &&
now.isBefore(dayjs(selectedProgram.end_time)) && (
<Flex mih={50} gap="xs" justify="flex-end" align="flex-end">
<Button
variant="transparent"
color="gray"
onClick={() => record(selectedProgram)}
>
Record
</Button>
<Flex mih={50} gap="xs" justify="flex-end" align="flex-end">
<Button
variant="transparent"
color="gray"
onClick={() => record(selectedProgram)}
>
Record
</Button>
{now.isAfter(dayjs(selectedProgram.start_time)) &&
now.isBefore(dayjs(selectedProgram.end_time)) && (
<Button
variant="transparent"
color="gray"
@ -480,8 +481,8 @@ export default function TVChannelGuide({ startDate, endDate }) {
>
Watch Now
</Button>
</Flex>
)}
)}
</Flex>
</>
)}
</Modal>