diff --git a/ui/v2.5/src/components/Movies/MovieDetails/MovieScrapeDialog.tsx b/ui/v2.5/src/components/Movies/MovieDetails/MovieScrapeDialog.tsx index f11edf6e8c3..2cba1e31533 100644 --- a/ui/v2.5/src/components/Movies/MovieDetails/MovieScrapeDialog.tsx +++ b/ui/v2.5/src/components/Movies/MovieDetails/MovieScrapeDialog.tsx @@ -84,7 +84,10 @@ export const MovieScrapeDialog: React.FC = ( const [duration, setDuration] = useState>( new ScrapeResult( DurationUtils.secondsToString(props.movie.duration || 0), - props.scraped.duration + // convert seconds to string if it's a number + props.scraped.duration && !isNaN(+props.scraped.duration) + ? DurationUtils.secondsToString(parseInt(props.scraped.duration, 10)) + : props.scraped.duration ) ); const [date, setDate] = useState>(