chore: remove console.logs

This commit is contained in:
Jip Fr 2021-07-15 21:25:50 +02:00
parent 95cb59fcf6
commit b67ab4995f
2 changed files with 0 additions and 5 deletions

View File

@ -6,7 +6,6 @@ import './EpisodeSelector.css'
export function EpisodeSelector({ setSeason, setEpisode, seasons, season, episodes, currentSeason, currentEpisode, slug }) { export function EpisodeSelector({ setSeason, setEpisode, seasons, season, episodes, currentSeason, currentEpisode, slug }) {
const choices = episodes.map(v => { const choices = episodes.map(v => {
console.log(slug, season, v)
let progressData = JSON.parse(localStorage.getItem('video-progress') || "{}") let progressData = JSON.parse(localStorage.getItem('video-progress') || "{}")
@ -15,7 +14,6 @@ export function EpisodeSelector({ setSeason, setEpisode, seasons, season, episod
const progress = progressData?.lookmovie?.show?.[slug][`${season}-${v}`] const progress = progressData?.lookmovie?.show?.[slug][`${season}-${v}`]
if(progress) { if(progress) {
console.log(progress)
currentlyAt = progress.currentlyAt currentlyAt = progress.currentlyAt
totalDuration = progress.totalDuration totalDuration = progress.totalDuration
} }

View File

@ -6,7 +6,6 @@ import { PercentageOverlay } from './PercentageOverlay'
// title: string // title: string
// onClick: () => void // onClick: () => void
export function MovieRow(props) { export function MovieRow(props) {
console.log(props)
const progressData = JSON.parse(localStorage.getItem("video-progress") || "{}") const progressData = JSON.parse(localStorage.getItem("video-progress") || "{}")
let progress; let progress;
@ -14,11 +13,9 @@ export function MovieRow(props) {
if(props.type === "movie") { if(props.type === "movie") {
progress = progressData?.lookmovie?.movie?.[props.slug]?.full progress = progressData?.lookmovie?.movie?.[props.slug]?.full
if(progress) { if(progress) {
console.log(progress)
percentage = Math.floor((progress.currentlyAt / progress.totalDuration) * 100) percentage = Math.floor((progress.currentlyAt / progress.totalDuration) * 100)
} }
} }
console.log(percentage)
return ( return (
<div className="movieRow" onClick={() => props.onClick && props.onClick()}> <div className="movieRow" onClick={() => props.onClick && props.onClick()}>