IB 5389 then IB 2376 at Barcelona
Bari → Barcelona → Valencia
Timetable, Barcelona time
23:20IB 5389 from Bari at the gatealso LL 5389, VY 6113
19:00IB 2376 to Valencia leaves the gatealso LL 3106, AY 5583, VY 5776, QR 8075
19 h 40 apart on the timetable, overnight
IB 2376 leaves 19 h 40 after IB 5389 arrives on the timetable: more than half a day, so not a connection we count.