dlrudie / Snip

Snip will get the artist, track, and album information from Spotify and iTunes, and save the information to a text file.
GNU General Public License v3.0
1.08k stars 172 forks source link

Files don't empty when Spotify app on phone chrash or closes without hitting stop/pause #510

Open murko69 opened 2 years ago

murko69 commented 2 years ago

I will just copy this report from another issue!

If I play Spotify from my phone and I don't stop the music, but rather just close the app mid song, Snip shows last played song 'for ever'. Last check was +30 minutes before I resumed playing again. It didn't empty the file.

I don't have cache metadata checked anymore if that makes a difference....?! I will continue checking this

dlrudie commented 2 years ago

Looking into this.

What's the most consistent way to duplicate this? What kind of phone do you have?

I have Snip running on my laptop. I opened Spotify on my phone and played a song. I then force quit Spotify on my phone mid-song. Snip then switches to say No Track Playing correctly.

I've tried it with various combinations of settings in Snip but it always updates correctly for me. The option for caching metadata won't make a difference. It's technically not even reading/loading any cached data anymore even with the option enabled. I need to rename it to "Save Metadata" or "Keep Metadata" as all that option does at this point is just save the json file in the Metadata folder.

murko69 commented 2 years ago

I have a Samsung Galaxy A53 (Android 12 I think) and a older Galaxy S8 (both makes same thing happen) Happens every time here if I do the following! I don't have Spotify running on the computer - only Snip.

I open Spotify on phone and start playing. Snip recognize this and updates accordingly. Then I click the menu button that looks like this '|||' so you can see all active apps, and then I just swipe up Spotify so it disappears from the list. Music stops playing - but if I check the computer, Snip shows last song still playing and that will stay until I start Spotify again and change song!