Excitation energy and spin dependence of the giant dipole resonance at finite temperature