My app doesn't work with Apple Music, only songs uploaded to iTunes

I have several issues with an app I had developed a few years ago.(I am not a coder so I really need help). It's called "Lyricz App" its supposed to let you create audio memes. The app posts your edited audio file (up to 15 seconds), the current Album Art or a picture you pick or a slide show of pictures, as well as the Song Name and Artist Name. I have serveral issues with the app, first I can't trim/edit music from Apple Music only music from iTunes. Second my app only lets me edit up to 15 seconds, I want to be able to expand that to 30 seconds if possible. Third when a song doesn't have album art it crashes (Can I somehow use my app Logo for default Album Art).




Could you please help me out, I have the code I can send, or maybe talk me through the process.I can provide email or contact detail, I really need help updating my app.