FR 479 then FR 3682 at Lisbon
Edinburgh → Lisbon → Málaga
Timetable, Lisbon time
22:30FR 479 from Edinburgh at the gate
21:05FR 3682 to Málaga leaves the gate
22 h 35 apart on the timetable, overnight
FR 3682 leaves 22 h 35 after FR 479 arrives on the timetable: more than half a day, so not a connection we count.