A judge gave Duggar 151 months in federal prison.

Prosecutors sought the maximum term of 20 years for Duggar, 34,according to the Associated Press.

Duggar’s lawyers, who were seeking a five-year sentence, maintained his innocence and said he would appeal.

Josh Duggar

Josh Duggar.Kris Connor/Getty Images

Duggar wasfound guiltyof receiving and possessing child pornography in December.

I hurt others, including my family and close friends," Duggarsaid in a 2015 statement.

“I confessed this to my parents who took several steps to help me address the situation.

Counting On, a spin-off series, wascanceled in Junein the wake of Duggar’s child pornography trial.