Skip to content

Commit

Permalink
fix catchup
Browse files Browse the repository at this point in the history
  • Loading branch information
lKinderBueno committed May 27, 2021
1 parent ef33fc0 commit 3aa7c4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/components/Live/Fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ const FullscreenMag = ({externalShow, cTitle, cDesc, cDuration}) => {
} : false);


const title = epgNow ? epgNow.title : ""
const description = epgNow ? epgNow.description : ""
const start = epgNow ? dateFormat(new Date(epgNow.start), h24Format) : ""
const stop = epgNow ? dateFormat(new Date(epgNow.end), h24Format) : ""
const title = epgNow && epgNow.start ? epgNow.title : ""
const description = epgNow && epgNow.start ? epgNow.description : ""
const start = epgNow && epgNow.start ? dateFormat(new Date(epgNow.start), h24Format) : ""
const stop = epgNow && epgNow.start ? dateFormat(new Date(epgNow.end), h24Format) : ""

/*const remoteController = (event) => {
if(event.keyCode === 27 || event.keyCode === 8){
Expand Down
4 changes: 2 additions & 2 deletions src/components/Player/Player.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {useRef,useState,useEffect} from "react"
import ReactPlayer from 'react-player'
import {useSelector} from "react-redux"
import Fullscreen from "../Live/Fullscreen"
import Fullscreen from "../Live/Fullscreen.js"
import Button from "./Buttons/Button"
import VolumeButton from "./Buttons/VolumeButton"
import PiPButton from "./Buttons/PiPButton"
Expand Down Expand Up @@ -44,7 +44,7 @@ width: 100%;
overflow-x: hidden;
background-color: transparent;
position: absolute;
z-index: 100000000000000000;
z-index: 5;
top: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/other/generate-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function convertTsToM3u8(ip) {
export function catchupUrlGenerator (ip,time, duration){
let url = ip;
time = timeConverter(time)
url = url.replace.replace("/live/","/").replace(/\.ts|\.m3u8/g,"")
url = url.replace("/live/","/").replace(/\.ts|\.m3u8/g,"")
const splitted = url.split("/");

const id = splitted[splitted.length-1];
Expand Down

0 comments on commit 3aa7c4f

Please sign in to comment.