Click to email this to a friend (Opens in new window)

Harvey Weinstein was finally locked up on Rikers Island Thursday — following what sources said was heart surgery at Bellevue Hospital.

“It took four hours,” said spokesperson Juda Engelmayer.

Engelmayer initially said that Weinstein had a stent placed in his heart last Wednesday but has since said that he underwent an angioplasty procedure. A small balloon was inserted into a clogged heart vessel to improve blood flow.

The disgraced movie mogul, who was discharged from Bellevue at about 1 p.m., was placed in protective custody in Rikers’ North Infirmary Command, sources said.

Weinstein, 67, was ordered held without bail following his Feb. 24 conviction for raping a hairstylist and forcibly performing oral sex on a production assistant for the “Project Runway” TV show he produced.

But he was taken to Bellevue’s Prison Ward instead of Rikers when he suffered chest pains following the jury verdict, for which he faces a maximum 29 years in prison at his scheduled sentencing next Wednesday.

Weinstein also faces trial in LA, where he’s accused of raping an Italian model and actress in a Beverly Hills hotel and of groping another model while he masturbated in a hotel bathroom.

Those incidents allegedly took place on successive days in 2013, and one of the women testified against Weinstein in New York to help prosecutors establish his M.O.

About 100 women — including actresses Gwyneth Paltrow, Uma Thurman and Rose McGowan — have accused Weinstein of sexual assault, misconduct or harassment, but many of the worst allegations can’t be prosecuted due to the statutes of limitation.

Sources have said Weinstein will be constantly monitored on Rikers to prevent what one insider called “another Jeffrey Epstein incident,” in reference to last year’s suicide of the infamous financier who hanged himself in a federal lockup in lower Manhattan while awaiting trial on child sex-trafficking charges

Rikers’ North Infirmary Command comprises two buildings — one of which is the original Rikers Island Hospital, built in 1932 — on the western half of the notorious jail complex in the East River.

The facility has 416 beds, of which 263 are in specialized units for prisoners “who require extreme protective custody because of the notoriety or the nature of their cases,” or who have HIV or AIDS-related conditions, according to the Correction Officers Benevolent Association.