iTunes 12.2 duplicated many tracks, and changed track information
I had updated iOS before this, and had been using the new Music app on iOS, with iCloud Music Library turned on. I had also subscribed to Apple Music.
Then I updated OS X to 10.10.4, and iTunes to 12.2.0, and activated iCloud Music Library on iTunes as well.
Now I have many tracks duplicated, and worse, iTunes changed my meticulously entered track information in many tracks. They are not even correct. In some cases, it simply changed the track names to iTunes Store version names (not everything), but in most cases, it added information that have nothing to do with those tracks at all. In some cases, it changed the album artwork and the composer names with completely unrelated tracks, and then reverted the artwork to the original in only some tracks, and left the rest. This is a complete mess!!!
Oh, it also shows broken cloud icons, meaning some songs are duplicates, but they are not.
I don't have iTunes Match.
I have Time Machine.
How can I fix this?
MacBook Pro with Retina display, OS X Yosemite (10.10.4)