Albania declared its independence from the Ottoman Empire in 1912 , but was conquered by Italy in 1939 .