FR 1977 then I2 1882 at Dublin
Riga → Dublin → Madrid
Timetable, Dublin time
20:35FR 1977 from Riga at the gate
10:00I2 1882 to Madrid leaves the gate
13 h 25 apart on the timetable, overnight
I2 1882 leaves 13 h 25 after FR 1977 arrives on the timetable: more than half a day, so not a connection we count.