FR 3194 then AT 675 at Barcelona
Riga → Barcelona → Tangier
Timetable, Barcelona time
00:30FR 3194 from Riga at the gate
22:40AT 675 to Tangier leaves the gate
22 h 10 apart on the timetable
AT 675 leaves 22 h 10 after FR 3194 arrives on the timetable: more than half a day, so not a connection we count.