A no contest plea is treated the same as a guilty plea for purposes of the sentencing.

Judge Alan Rubin sentenced West to serve two years’ probation for the misdemeanor battery conviction. He must attend 24 anger management sessions, perform 250 hours of community service and pay restitution to the victim.

Rubin said he will review the community service to make sure he is getting no special treatment.

Photographer Daniel Ramos told the judge he wanted West thrown in jail.

“I was only doing my job, and he broke the law,” Ramos said. “I believe that if I did what he did to me, I would have been put behind bars.”

The incident was caught on camera, leaving West with the prospect of a tough trial and the possibility of jail unless he accepted a plea deal from prosecutors that included probation.

West was not required to appear in court since the charge was just a misdemeanor.

The video recorded the following exchange:

“Kanye! Kanye! Talk to me, Kanye!” a photographer shouted outside of a Los Angeles International Airport terminal on the night of July 19, 2013.

“Now come on, Kanye, I don’t want to fight with you.”

“I told you, don’t talk to me, right. You’re trying to get me in trouble so I step off and have to pay you like $250,000.”

West is then seen rushing the photographer and attempting to wrestle his camera from his hands. West retreats after about 15 seconds of scuffling with the photographer.

“I simply asked him a question, and I didn’t use any vulgar language,” Ramos told the judge Monday. “In fact, I gave him a compliment and told him that he was cool.”

Lawyer Gloria Allred has filed a civil suit against West on behalf of the photographer.