Man sentenced to two years for selling pirated movies and albums