FR 7157 then FR 812 at Dublin
Madrid → Dublin → Edinburgh
Timetable, Dublin time
20:25FR 7157 from Madrid at the gate
15:35FR 812 to Edinburgh leaves the gate
19 h 10 apart on the timetable, overnight
FR 812 leaves 19 h 10 after FR 7157 arrives on the timetable: more than half a day, so not a connection we count.