mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 01:05:08 +01:00
chore: remove console.logs
This commit is contained in:
parent
95cb59fcf6
commit
b67ab4995f
@ -6,7 +6,6 @@ import './EpisodeSelector.css'
|
||||
export function EpisodeSelector({ setSeason, setEpisode, seasons, season, episodes, currentSeason, currentEpisode, slug }) {
|
||||
|
||||
const choices = episodes.map(v => {
|
||||
console.log(slug, season, v)
|
||||
|
||||
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}`]
|
||||
if(progress) {
|
||||
console.log(progress)
|
||||
currentlyAt = progress.currentlyAt
|
||||
totalDuration = progress.totalDuration
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ import { PercentageOverlay } from './PercentageOverlay'
|
||||
// title: string
|
||||
// onClick: () => void
|
||||
export function MovieRow(props) {
|
||||
console.log(props)
|
||||
|
||||
const progressData = JSON.parse(localStorage.getItem("video-progress") || "{}")
|
||||
let progress;
|
||||
@ -14,11 +13,9 @@ export function MovieRow(props) {
|
||||
if(props.type === "movie") {
|
||||
progress = progressData?.lookmovie?.movie?.[props.slug]?.full
|
||||
if(progress) {
|
||||
console.log(progress)
|
||||
percentage = Math.floor((progress.currentlyAt / progress.totalDuration) * 100)
|
||||
}
|
||||
}
|
||||
console.log(percentage)
|
||||
|
||||
return (
|
||||
<div className="movieRow" onClick={() => props.onClick && props.onClick()}>
|
||||
|
Loading…
Reference in New Issue
Block a user