FR 8385 then FR 2239 at Barcelona
Budapest → Barcelona → Marrakesh
Timetable, Barcelona time
17:20FR 8385 from Budapest at the gate
10:45FR 2239 to Marrakesh leaves the gate
17 h 25 apart on the timetable, overnight
FR 2239 leaves 17 h 25 after FR 8385 arrives on the timetable: more than half a day, so not a connection we count.