FR 3194 then FR 3189 at Barcelona
Riga → Barcelona → Fes
Timetable, Barcelona time
23:45FR 3194 from Riga at the gate
16:45FR 3189 to Fes leaves the gate
17 h apart on the timetable, overnight
FR 3189 leaves 17 h after FR 3194 arrives on the timetable: more than half a day, so not a connection we count.