FR 6301 then FR 4585 at Barcelona
Sofia → Barcelona → Porto
Timetable, Barcelona time
23:15FR 6301 from Sofia at the gate
19:20FR 4585 to Porto leaves the gate
20 h 05 apart on the timetable, overnight
FR 4585 leaves 20 h 05 after FR 6301 arrives on the timetable: more than half a day, so not a connection we count.