Once I flew from Milano Malpensa, Italy, to Entebbe, Uganda, with Turkish Airlines. After booking the flight (yes, I was young and stupid) I realized I had a 24+ layover in Istanbul so I called Turkish Airlines and I asked if they had some kind of accommodation and, to my big surprise, they booked a 4* hotel for me all for free.
I haven't had any other long layover since so I'm not sure whether this is common or not.
My question is: I'm flying AirCanada to Cuba with a long layover to Toronto, am I eligible for some kind of airline-paid accommodation?