mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
chore: remove console.logs
This commit is contained in:
parent
95cb59fcf6
commit
b67ab4995f
2 changed files with 0 additions and 5 deletions
|
@ -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 a new issue