Jared Fogle arrives at the federal courthouse in Indianapolis (AP Photo/Michael Conroy)

A judge has sentenced former Subway pitchman Jared Fogle to 15 years and eight months in prison for trading in child pornography and having sex with underage prostitutes.

U.S. District Judge Tanya Walton Pratt sentenced Fogle on Thursday after he pleaded guilty to one count each of travelling to engage in illicit sexual conduct with a minor and distribution and receipt of child pornography.

Fogle agreed to the plea deal in August after authorities raided his suburban Indianapolis home in July.

Prosecutors sought a 12-year sentence, while Fogle's attorneys sought five years.

The 38-year-old Fogle admitted paying for sex with girls as young as 16 and receiving child pornography produced by his charitable foundation's former director.

He also agreed pay his 14 victims $100,000 each in restitution.

Fogle told a judge that he regrets his actions that destroyed his career and his life and harmed his victims. He said Thursday at his sentencing hearing in Indianapolis that he can't undo the past but will do everything he can to be a better man and father when he gets out of prison.

Fogle pleaded guilty to one count each of travelling to engage in illicit sexual conduct with a minor and distribution and receipt of child pornography.

In Fogle's plea deal, his lawyers agreed not to seek a sentence of less than five years in prison and prosecutors agreed to recommend a sentence of no more than 12 years behind bars.

A psychiatrist who analyzed Jared Fogle says he concluded that the former Subway pitchman suffers from hypersexuality, mild pedophilia, and alcohol abuse and dependency.

John Bradford, a professor at the University of Ottawa in Canada, testified by phone Thursday at Fogle's sentencing hearing that Fogle appears to have had a compulsive eating disorder and that he began to develop hypersexuality shortly after losing weight.

Bradford says Fogle told him he had sex with minors age 16 and 17 and had "a fairly extensive history" of using prostitutes. He says Fogle told him he masturbated to fantasies about prepubescent girls, but that there's no evidence he acted on them.

(© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)