(a) Lien.--A hotelkeeper within this Commonwealth shall have a lien upon the goods and baggage belonging to a guest or boarder for the amount of indebtedness contracted for boarding and lodging for a period of time not exceeding two weeks. The hotelkeeper may detain the goods and baggage until the amount of indebtedness is paid.
(b) Public sale.--
(1) Except as provided under paragraph (2), after the detention of goods under subsection (a) for three months, the hotelkeeper may apply to a magisterial district judge to publicly sell the goods and baggage. At least 10 days' notice of the public sale must be placed in at least three public places in the ward of the city or borough or in the township where the inn, hotel or boardinghouse is located. The owner of the goods and baggage shall receive the balance of the proceeds of the public sale, minus all costs and the amount of indebtedness.
(2) Notwithstanding paragraph (1), the owner of the goods and baggage shall have the right to redeem the goods and baggage as follows:
(i) At any time within the three months of detention, upon paying the amount of the indebtedness.
(ii) At any time previous to the public sale, upon paying the amount of the indebtedness and any additional costs established under law.