FR 3977 then FR 3166 at Barcelona
Dublin → Barcelona → Palermo
Timetable, Barcelona time
22:55FR 3977 from Dublin at the gate
18:20FR 3166 to Palermo leaves the gate
19 h 25 apart on the timetable, overnight
FR 3166 leaves 19 h 25 after FR 3977 arrives on the timetable: more than half a day, so not a connection we count.