IB 1145 then FR 478 at Lisbon
Madrid → Lisbon → Edinburgh
Timetable, Lisbon time
20:05IB 1145 from Madrid at the gate
15:40FR 478 to Edinburgh leaves the gate
19 h 35 apart on the timetable, overnight
FR 478 leaves 19 h 35 after IB 1145 arrives on the timetable: more than half a day, so not a connection we count.