They are freeing up ~10,000 houses over the next four years with this legislation. Barcelona built ~15,000 new properties between 2011 and 2020.
The math don't math. It's a drop in the bucket. The entire impact of AirBnB + all housing built in the last decade does not offset the last half decade of population growth.
Housing must be built more quickly than your population is growing to keep prices down, or you must concede that you live in a nice area where people wealthier than you wish to be and that those people are going to gentrify the area and displace locals. It's an unpleasant reality of the world.
EDIT: some good feedback in the responses. thanks! I'm being a bit dramatic by saying it's just a drop in the bucket, this action frees up more housing than was built over the same timespan, and it's possible to have effects on pricing greater than what would be inferred by the raw numbers because economics is tricky. cheers.
Not to mention that most tourists don't even sit around the local area, but rather go to the city attractions.
Airbnb and resident housing areas are just not compatible, they have different needs and require different infrastructure. Hotels are built around infrastructure supporting tourism and are much healthier for cities.
Which is why tourist resort towns and stadium areas tend to have a lot of closed shops when they're not "on".
Which in turn makes them less attractive for year-round residents, which spirals into intensifying seasonality.