RENO, Nev. (AP) -- A former lover of Liberace who was the subject of an HBO film on the pianist's life has been sentenced to eight to 20 years in Nevada state prison for failing another court-ordered drug test while on probation for burglary and identity theft convictions.

RELATED: BING: Stars who cheated death

Washoe District Judge Patrick Flanagan sentenced Scott Thorson in Reno on Wednesday.

Flanagan gave Thorson a second chance after testing positive for methamphetamine twice in October and again in November. He was arrested Nov. 19 after violating an order to enter an inpatient treatment facility.

RELATED: Stars arrested by the age of 21

Thorson, also known as Jess Marlow, said he was an addict but determined to get sober. He has said he plans to write another book on the heels of his "Behind the Candelabra" used as the basis for the HBO film.