mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-25 07:51:51 +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 }) {
|
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
|
||||||
}
|
}
|
||||||
|
@ -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()}>
|
||||||
|
Loading…
Reference in New Issue
Block a user