To avoid such problems, I'd suggest you backup your iTunes videos, movies, tV shows, audios and so on.
So that whenever an attach happens, you can always restore your data. Check here to find a tool to back up your iTunes media files.
https://www.drmare.com/