lucasasselli / garmin-podcasts

Garmin Podcasts is a Garmin Connect IQ podcast app powered by Podcast Index. No external service or subscription required: all you need is you watch!
GNU General Public License v3.0
76 stars 17 forks source link

Playback queue has incorrect number of episodes #7

Closed dallanmc closed 3 years ago

dallanmc commented 3 years ago

Here's the scenario: 1 subscribed podcast. Max episodes per podcast: 1

Sync and there is a new podcast. Select the episode in the playback queue. Menu now has "Playback queue. 1 Episodes"

All good so far.

But now let's say you sync and there's a new episode. What happens now is that the new episode gets downloaded and added to the queue. The old episode drops off (because it's only 1 episode per podcast), BUT it hasn't been removed from the Constants.STORAGE_PLAYLIST playlist.

Now when you select the new episode, it will add it to the Constants.STORAGE_PLAYLIST playlist, but the old one will also be stored in there.

Now the total number of episodes is 2, but there is only one episode visible. The total number should be 1.

lucasasselli commented 3 years ago

Nice catch! 👍 I delivered a fix for this issue in version 2.0.2. You might have to sync to see the old episodes purged from the queue.